Back to project page android-mvc-framework.
The source code is released under:
Apache License
If you think the Android project android-mvc-framework 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_mvc.framework.db.dao; /*from www . ja v a2 s. co m*/ import com.android_mvc.framework.common.FWUtil; import android.content.Context; import android.content.SharedPreferences; /** * FW???????????????????? * @author id:language_and_engineering * */ public class FWPrefDAO extends BasePrefDAO implements IFWDAO { // ----------------- FW??????????? ----------------- /** * ?????????????? */ public void updateFWInstallCompletedFlag( Context context, boolean b ) { SharedPreferences.Editor editor = getEditor(context); editor.putBoolean("FWInstallCompletedFlag", b); editor.commit(); FWUtil.d("FW?????????????????" + b); } /** * ???????????????? */ public boolean getFWInstallCompletedFlag(Context context) { SharedPreferences settings = getSettings(context); boolean ret = settings.getBoolean("FWInstallCompletedFlag", false); FWUtil.d("?????????????????" + ret); return ret; } // ----------------- ??????? ----------------- /** * ??????????? */ public void deleteAll( Context context ) { FWUtil.d("????????????????"); SharedPreferences.Editor editor = getEditor(context); editor.clear(); editor.commit(); FWUtil.d("??????????????????"); } }