Code example for Preferences

Methods: get

0
            Prefs.remove(CopyrightKey);
        } 
    } 
 
    public static String getDefaultCopyright() {
        return Prefs.get(CopyrightKey, null);
    } 
 
    public static void setDefaultCreator(String text) {
        if (text != null) {
            Prefs.put(CreatorKey, text);
        } 
        else { 
            Prefs.remove(CreatorKey);
        } 
    } 
 
    public static String getDefaultCreator() {
        return Prefs.get(CreatorKey, null);
    } 
}