Back to project page appsensor.
The source code is released under:
GNU General Public License
If you think the Android project appsensor 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 de.dfki.appsensor.backup; // w w w . j av a2s. c om import de.dfki.appsensor.logging.DeviceObserver; import android.app.backup.BackupAgentHelper; import android.app.backup.FileBackupHelper; /** * @author Matthias Boehmer, matthias.boehmer@dfki.de */ public class InstallationBackupAgent extends BackupAgentHelper { // A key to uniquely identify the set of backup data static final String FILES_BACKUP_KEY = "installation_id_file"; // Allocate a helper and add it to the backup agent @Override public void onCreate() { FileBackupHelper filesHelper = new FileBackupHelper(this, DeviceObserver.INSTALLATION); addHelper(FILES_BACKUP_KEY, filesHelper); } }