@@ -0,0 +1,1147 @@
+package com.github.keaume.amigo;%0A%0Aimport android.app.backup.BackupAgentHelper;%0Aimport android.app.backup.FileBackupHelper;%0Aimport android.app.backup.SharedPreferencesBackupHelper;%0Aimport android.content.Context;%0A%0Aimport com.github.keaume.amigo.sql.amigoDatabaseHelper;%0Aimport timber.log.Timber;%0A%0Apublic class amigoBackupAgent extends BackupAgentHelper %7B%0A%0A    private static final String DEFAULT_SHARED_PREFERENCES = %22com.github.keaume.amigo_preferences%22;%0A    private static final String DEFAULT_SHARED_PREFERENCES_BACKUP_KEY = %22default_shared_preferences%22;%0A    private static final String DATABASE_BACKUP_KEY = %22database%22;%0A%0A    @Override%0A    public void onCreate() %7B%0A        Timber.d(%22onCreate called%22);%0A        addHelper(DEFAULT_SHARED_PREFERENCES_BACKUP_KEY, new SharedPreferencesBackupHelper(this, DEFAULT_SHARED_PREFERENCES));%0A        addHelper(DATABASE_BACKUP_KEY, new DbBackupHelper(this, amigoDatabaseHelper.DB_FILE_NAME));%0A    %7D%0A%0A    private class DbBackupHelper extends FileBackupHelper %7B%0A        public DbBackupHelper(Context ctx, String dbName) %7B%0A            super(ctx, ctx.getDatabasePath(dbName).getAbsolutePath());%0A        %7D%0A    %7D%0A%7D%0A

Create amigoBackupAgent.java