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 boolean getBoolean(Context context, String key) { return context.getSharedPreferences("fq", Context.MODE_PRIVATE).getBoolean(key, false); }
From source file:Main.java
public static void putString(Context context, String key, String value) { context.getSharedPreferences("atguigu", Context.MODE_PRIVATE).edit().putString(key, value).commit(); }
From source file:Main.java
public static void putBoolean(Context context, String key, boolean value) { context.getSharedPreferences("atguigu", Context.MODE_PRIVATE).edit().putBoolean(key, value).commit(); }
From source file:Main.java
public static boolean getFirstRun(Context context) { return context.getSharedPreferences("com.yugy.twentyonedays", Context.MODE_PRIVATE).getBoolean("firstRun", true);/* www .j a v a 2 s .co m*/ }
From source file:Main.java
public static String getString(Context context, String key, String def) { return context.getSharedPreferences("MeiqiaSDK", Context.MODE_PRIVATE).getString(key, def); }
From source file:Main.java
public static SharedPreferences sys_sp(Context context) { return context.getSharedPreferences("sys", Context.MODE_PRIVATE); }
From source file:Main.java
public static File getFilePath(Context context, String dirname, String filename) { File cascadeDir = context.getDir(dirname, Context.MODE_PRIVATE); return new File(cascadeDir, filename); }
From source file:Main.java
public static void setRatingNotiFalse(Context context) { context.getSharedPreferences("Settings", Context.MODE_PRIVATE).edit().putBoolean("rating_noti", false) .commit();/*from w w w.ja v a2 s. c om*/ }
From source file:Main.java
public static void remove(String key, Context ctx) { SharedPreferences sp = ctx.getSharedPreferences("config", Context.MODE_PRIVATE); sp.edit().remove(key).commit();/*from w w w . ja v a2 s . c o m*/ }
From source file:Main.java
public static File getCacheDir(Activity act) { return act.getDir("cacheFile", Context.MODE_PRIVATE | Context.MODE_WORLD_READABLE | Context.MODE_WORLD_WRITEABLE); }