Code example for SharedPreferencesBackupHelper

0
	 
	// Simply allocate a helper and install it 
	public void onCreate() { 
		// This is the preference name used by PreferenceManager.getDefaultSharedPreferences 
		final String prefs = getPackageName() + "_preferences";
		addHelper(BACKUP_KEY, new SharedPreferencesBackupHelper(this, prefs));
	} 
}