diff options
Diffstat (limited to 'main/src/cgeo/geocaching/backup/CentralBackupAgent.java')
| -rw-r--r-- | main/src/cgeo/geocaching/backup/CentralBackupAgent.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/backup/CentralBackupAgent.java b/main/src/cgeo/geocaching/backup/CentralBackupAgent.java new file mode 100644 index 0000000..742eb0c --- /dev/null +++ b/main/src/cgeo/geocaching/backup/CentralBackupAgent.java @@ -0,0 +1,18 @@ +package cgeo.geocaching.backup; + +import cgeo.geocaching.cgSettings; + +import android.app.backup.BackupAgentHelper; +import android.app.backup.SharedPreferencesBackupHelper; + +public class CentralBackupAgent extends BackupAgentHelper { + + static final String PREFS_BACKUP_KEY = "prefs"; + + @Override + public void onCreate() { + SharedPreferencesBackupHelper helper = new SharedPreferencesBackupHelper(this, cgSettings.preferences); + addHelper(PREFS_BACKUP_KEY, helper); + } + +} |
