Back to project page RingMyPhoneAndroid.
The source code is released under:
MIT License
If you think the Android project RingMyPhoneAndroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.darkrockstudios.apps.ringmyphone; //w ww . j a v a 2 s. c o m import android.app.backup.BackupAgentHelper; import android.app.backup.SharedPreferencesBackupHelper; /** * Created by adam on 12/28/13. */ public class PreferencesBackupAgent extends BackupAgentHelper { private static final String TAG = PreferencesBackupAgent.class.getSimpleName(); private static final String PREFERENCES_BACKUP_KEY = PreferencesBackupAgent.class.getName() + ".PREFERENCES"; private String getDefaultSharedPreferenceKey() { return "com.darkrockstudios.apps.ringmyphone_preferences"; } @Override public void onCreate() { SharedPreferencesBackupHelper helper = new SharedPreferencesBackupHelper( this, getDefaultSharedPreferenceKey() ); addHelper( PREFERENCES_BACKUP_KEY, helper ); } }