Android Open Source - RingMyPhoneAndroid Preferences Backup Agent






From Project

Back to project page RingMyPhoneAndroid.

License

The source code is released under:

MIT License

If you think the Android project RingMyPhoneAndroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.darkrockstudios.apps.ringmyphone;
//w  ww  .  j  a v  a  2 s. c o  m
import android.app.backup.BackupAgentHelper;
import android.app.backup.SharedPreferencesBackupHelper;

/**
 * Created by adam on 12/28/13.
 */
public class PreferencesBackupAgent extends BackupAgentHelper
{
  private static final String TAG = PreferencesBackupAgent.class.getSimpleName();

  private static final String PREFERENCES_BACKUP_KEY = PreferencesBackupAgent.class.getName() + ".PREFERENCES";

  private String getDefaultSharedPreferenceKey()
  {
    return "com.darkrockstudios.apps.ringmyphone_preferences";
  }

  @Override
  public void onCreate()
  {
    SharedPreferencesBackupHelper helper = new SharedPreferencesBackupHelper( this, getDefaultSharedPreferenceKey() );
    addHelper( PREFERENCES_BACKUP_KEY, helper );
  }
}




Java Source Code List

com.darkrockstudios.apps.ringmyphone.AboutFragment.java
com.darkrockstudios.apps.ringmyphone.BillingActivity.java
com.darkrockstudios.apps.ringmyphone.BillingSecurity.java
com.darkrockstudios.apps.ringmyphone.Debug.java
com.darkrockstudios.apps.ringmyphone.MainActivity.java
com.darkrockstudios.apps.ringmyphone.NotificationId.java
com.darkrockstudios.apps.ringmyphone.OsUtil.java
com.darkrockstudios.apps.ringmyphone.PebbleApp.java
com.darkrockstudios.apps.ringmyphone.PebbleMessageReceiver.java
com.darkrockstudios.apps.ringmyphone.PreferencesBackupAgent.java
com.darkrockstudios.apps.ringmyphone.Preferences.java
com.darkrockstudios.apps.ringmyphone.Purchase.java
com.darkrockstudios.apps.ringmyphone.RingerService.java
com.darkrockstudios.apps.ringmyphone.SettingsActivity.java
com.darkrockstudios.apps.ringmyphone.SettingsFragment.java
com.darkrockstudios.apps.ringmyphone.StopRingingReceiver.java
com.darkrockstudios.apps.ringmyphone.UpgradeReceiver.java