Code example for SharedPreferencesBackupHelper

0
 
    private static final String PREFS_BACKUP_KEY = "prefs";
 
    @Override 
    public void onCreate() { 
        final SharedPreferencesBackupHelper helper = new SharedPreferencesBackupHelper(this, ApplicationSettings.getPreferencesName());
        addHelper(PREFS_BACKUP_KEY, helper);
    } 
 
} 
Experience pair programming with AI  Get Codota for Java