Android examples for android.os:Bundle
check if Bundle contains All keys
import android.os.Bundle; public class Main{ public static boolean containsAll(Bundle bundle, String... keys) { if (bundle == null) return false; for (String key : keys) { if (!bundle.containsKey(key)) return false; }/*from w w w .j a v a 2 s . co m*/ return true; } }