Android examples for android.os:Bundle
get Boolean from a list of Bundle
import android.os.Bundle; public class Main { public static Boolean getBoolean(String key, Bundle... bundles) { if (bundles != null) { for (Bundle bundle : bundles) { if (bundle != null && bundle.containsKey(key)) { return bundle.getBoolean(key); }/* w w w. ja v a 2s . c om*/ } } return null; } }