1 package ro
.ieval
.fonbot
;
3 import android
.app
.backup
.BackupAgentHelper
;
4 import android
.app
.backup
.SharedPreferencesBackupHelper
;
7 * Copyright © 2013 Marius Gavrilescu
9 * This file is part of FonBot.
11 * FonBot is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation, either version 3 of the License, or
14 * (at your option) any later version.
16 * FonBot is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with FonBot. If not, see <http://www.gnu.org/licenses/>.
26 * Backup agent. Backups the preferences file
28 * @author Marius Gavrilescu <marius@ieval.ro>
30 public final class BackupAgent
extends BackupAgentHelper
{
32 public void onCreate() {
33 addHelper("prefs", new SharedPreferencesBackupHelper(this,
34 getClass().getPackage().getName()+"_preferences"));