ensure Bundle Contains Key - Android Android OS

Android examples for Android OS:Bundle Key

Description

ensure Bundle Contains Key

Demo Code


import android.os.Bundle;
import android.os.Parcelable;

public class Main{
    private static void ensureContainsKey(Bundle b, String key)
            throws SQLiteServerProtocolException {
        if (!b.containsKey(key)) {
            throw new SQLiteServerProtocolException(
                    "Missing required key: " + key);
        }// w  w  w  .  j  a v a 2s.c  o  m
    }
}

Related Tutorials