Initial commit
[fonbot.git] / src / ro / ieval / fonbot / BackupAgent.java
1 package ro.ieval.fonbot;
2
3 import android.app.backup.BackupAgentHelper;
4 import android.app.backup.SharedPreferencesBackupHelper;
5
6 /*
7 * Copyright © 2013 Marius Gavrilescu
8 *
9 * This file is part of FonBot.
10 *
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.
15 *
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.
20 *
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/>.
23 */
24
25 /**
26 * Backup agent. Backups the preferences file
27 *
28 * @author Marius Gavrilescu <marius@ieval.ro>
29 */
30 public final class BackupAgent extends BackupAgentHelper {
31 @Override
32 public void onCreate() {
33 addHelper("prefs", new SharedPreferencesBackupHelper(this,
34 getClass().getPackage().getName()+"_preferences"));
35 }
36 }
This page took 0.020602 seconds and 4 git commands to generate.