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