Java tutorial
//package com.java2s; import android.app.Activity; import android.content.Intent; import android.os.Bundle; public class Main { public static final String BUNDLE = "bundle"; public static Bundle getBundleFromIntent(Activity activity) { return getBundleFromIntent(activity, BUNDLE); } public static Bundle getBundleFromIntent(Activity activity, String name) { Intent it = activity.getIntent(); return it.getBundleExtra(name); } }