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