Code example for SharedPreferences

Methods: containsgetFloat

0
            return mPrefGlobal.getInt(key, defValue);
        } else { 
            return mPrefLocal.getInt(key, defValue);
        } 
    } 
 
    @Override 
    public long getLong(String key, long defValue) {
        if (isGlobal(key) || !mPrefLocal.contains(key)) {
            return mPrefGlobal.getLong(key, defValue);
        } else { 
            return mPrefLocal.getLong(key, defValue);
        } 
    } 
 
    @Override 
    public float getFloat(String key, float defValue) {
        if (isGlobal(key) || !mPrefLocal.contains(key)) {
            return mPrefGlobal.getFloat(key, defValue);
        } else { 
Stop searching for code, let great code find you!  Add Codota to your java IDE