Android examples for android.os:Bundle
get String from a list of Bundle
import android.os.Bundle; import android.os.Parcelable; import java.util.ArrayList; public class Main{ public static String getString(String key, Bundle... bundles) { if (bundles != null) { for (Bundle bundle : bundles) { if (bundle != null && bundle.containsKey(key)) { return bundle.getString(key); }/*w ww . j a va 2 s .c o m*/ } } return null; } }