enter Activity With Bundle - Android android.app

Android examples for android.app:Activity Navigation

Description

enter Activity With Bundle

Demo Code

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   ww  w.  java 2  s  .  co m*/
        activity.startActivity(intent);
    }

}

Related Tutorials