Code example for Preferences

Methods: getBoolean

0
    public void setUpsideDown(boolean value) {
        set("upsideDown", value);
    } 
 
    public boolean isLandscape() { 
        return applicationPreferences.getBoolean("landscape", false);
    } 
 
    public void setLandscape(boolean value) {
        set("landscape", value);
    } 
 
    public boolean isAutoShow() { 
        return applicationPreferences.getBoolean("autoShow", false);
    } 
 
    public void setAutoShow(boolean value) {
        set("autoShow", value);
    }