Back to project page unbounce-android.
The source code is released under:
MIT License
If you think the Android project unbounce-android 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 com.ryansteckler.nlpunbounce.helpers; //from w w w . ja v a 2 s . co m import android.content.SharedPreferences; /** * Created by rsteckler on 9/28/14. */ public class SettingsHelper { public static void resetToDefaults(SharedPreferences prefs) { final SharedPreferences.Editor editor = prefs.edit(); editor.clear(); editor.putBoolean("first_launch", false); editor.putBoolean("wakelock_NlpWakeLock_enabled", true); editor.putBoolean("wakelock_NlpCollectorWakeLock_enabled", true); editor.putBoolean("alarm_com.google.android.gms.nlp.ALARM_WAKEUP_LOCATOR_enabled", true); editor.putBoolean("alarm_com.google.android.gms.nlp.ALARM_WAKEUP_ACTIVITY_DETECTION_enabled", true); editor.apply(); } }