Java tutorial
//package com.java2s; import android.app.Activity; import android.content.Intent; import android.os.Bundle; public class Main { public static void setStartIntent(Activity activity, Intent intent) { Bundle extras = getStartExtras(activity); if (extras != null) intent.putExtras(extras); } private static Bundle getStartExtras(Activity activity) { Intent startIntent = activity.getIntent(); return startIntent.getExtras(); } }