Back to project page Wardrobe_app.
The source code is released under:
Apache License
If you think the Android project Wardrobe_app 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.android.busolo.apps.wardrobe.utils; // ww w . j a v a 2s . com import android.content.Context; import android.content.SharedPreferences; import android.preference.PreferenceManager; public class PrefUtils { /** * Boolean preference that when checked, indicates that the user has completed account * authentication and the initial set up flow. */ public static final String PREF_SETUP_DONE = "pref_setup_done"; public static boolean isSetupDone(final Context context) { SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context); return sp.getBoolean(PREF_SETUP_DONE, false); } public static void markSetupDone(final Context context) { SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context); sp.edit().putBoolean(PREF_SETUP_DONE, true).commit(); } }