List of usage examples for android.content Context MODE_PRIVATE
int MODE_PRIVATE
To view the source code for android.content Context MODE_PRIVATE.
Click Source Link
From source file:Main.java
public static void saveMaxIndex(Context mContext, int maxIndex) { SharedPreferences settings = mContext.getSharedPreferences("clock", Context.MODE_PRIVATE); Editor mEditor = settings.edit();//from www . jav a 2 s . c o m mEditor.putInt(MAX_INDEX, maxIndex); mEditor.commit(); }
From source file:Main.java
public static String getSwipeDownAppToLaunchPackageName(Context context) { SharedPreferences sp = context.getSharedPreferences(ALMOSTNEXUS_PREFERENCES, Context.MODE_PRIVATE); return sp.getString("swipeDownAppToLaunchPackageName", ""); }
From source file:Main.java
public static int getIntProperty(Context context, String key) { SharedPreferences sp = context.getSharedPreferences(DEFAULT_FILE_NAME, Context.MODE_PRIVATE); return sp.getInt(key, -1); }
From source file:Main.java
public static String getQQid(Context context) { SharedPreferences preferences = context.getSharedPreferences(QQ, Context.MODE_PRIVATE); String QQid = preferences.getString(QQ_ID, ""); return QQid;/*w w w. jav a 2s.c o m*/ }
From source file:Main.java
public static boolean isCorrectPasscode(Context context, String inputPasscode) { SharedPreferences prefs = context.getSharedPreferences(context.getPackageName(), Context.MODE_PRIVATE); if (prefs.getString(PREFS_KEY_PASSCODE, null).contentEquals(inputPasscode)) return true; else//from ww w. j av a 2 s . co m return false; }
From source file:Main.java
private static final SharedPreferences getSharedPreference(Context context) { return context.getSharedPreferences(EASY_SOCIAL_FITBIT_PREFERENCE_NAME, Context.MODE_PRIVATE); }
From source file:Main.java
public static String getHomeBindingAppToLaunchPackageName(Context context) { SharedPreferences sp = context.getSharedPreferences(ALMOSTNEXUS_PREFERENCES, Context.MODE_PRIVATE); return sp.getString("homeBindingAppToLaunchPackageName", ""); }
From source file:Main.java
public static void setDesktopBlocked(Context context, boolean block) { SharedPreferences sp = context.getSharedPreferences(ALMOSTNEXUS_PREFERENCES, Context.MODE_PRIVATE); ;/* w w w . j a va 2s. co m*/ SharedPreferences.Editor editor = sp.edit(); editor.putBoolean("desktopBlocked", block); editor.commit(); }
From source file:Main.java
public static String getHomeBindingAppToLaunchPackageName(Context context) { SharedPreferences sp = context.getSharedPreferences(ALMOSTNEXUS_PREFERENCES, Context.MODE_PRIVATE); return ""; }
From source file:Main.java
public static void setChangelogVersion(Context context, String version) { SharedPreferences sp = context.getSharedPreferences(ALMOSTNEXUS_PREFERENCES, Context.MODE_PRIVATE); SharedPreferences.Editor editor = sp.edit(); editor.putString("changelogReadVersion", version); editor.commit();// w ww .jav a 2 s . c om }