Code example for SharedPreferences

Methods: containsgetInt

0
                || key.equals(CameraSettings.KEY_POWER_SHUTTER)
                || key.equals(CameraSettings.KEY_STORAGE);
    } 
 
    @Override 
    public String getString(String key, String defValue) {
        if (isGlobal(key) || !mPrefLocal.contains(key)) {
            return mPrefGlobal.getString(key, defValue);
        } else { 
            return mPrefLocal.getString(key, defValue);
        } 
    } 
 
    @Override 
    public int getInt(String key, int defValue) {
        if (isGlobal(key) || !mPrefLocal.contains(key)) {
            return mPrefGlobal.getInt(key, defValue);
        } else { 
            return mPrefLocal.getInt(key, defValue);
        } 
    }