Android examples for android.os:Bundle
get Boolean value from Bundle by key with default value
import android.os.Bundle; public class Main{ public static boolean getBoolean(Bundle bundle, String key, boolean defaultValue) { if (bundle == null || Strings.isEmpty(key)) { return defaultValue; }/*from ww w . jav a 2 s . c o m*/ return bundle.getBoolean(key, defaultValue); } }