enter Activity With Bundle - Android Activity

Android examples for Activity:Activity Start

Description

enter Activity With Bundle

Demo Code


//package com.java2s;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class Main {
    public static void enterActivityWithBundle(Activity activity,
            Class clz, Bundle bundle) {
        Intent intent = new Intent(activity, clz);
        intent.putExtras(bundle);//from w ww . j a va2 s.c o  m
        activity.startActivity(intent);
    }
}

Related Tutorials