List of usage examples for android.content SharedPreferences getString
@Nullable String getString(String key, @Nullable String defValue);
From source file:Main.java
public static String getUserEmail(final Context context) { SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context); return sp.getString(PREF_EMAIL, null); }
From source file:Main.java
public static String getID(Context ctx, String param, boolean isNow) { SharedPreferences settings = ctx.getSharedPreferences(PREFS_NAME, 0); String result = settings.getString(param, ""); return result; }
From source file:Main.java
public static String getUserChapter(final Context context) { SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context); return sp.getString(PREF_CHAPTER, null); }
From source file:Main.java
public static String readFromPrefs(Context context, String key) { SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); return prefs.getString(key, null); }
From source file:Main.java
public static String get(Context context, String prefs) { SharedPreferences settings = context.getSharedPreferences("defaultPreferences", 0); return settings.getString(prefs, ""); }
From source file:Main.java
private static String loadUDIDFromSP(Context context) { SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(context); return pref.getString(UDID_KEY, ""); }
From source file:Main.java
public static String getString(String preName, Context context, String key) { SharedPreferences pre = context.getSharedPreferences(preName, Context.MODE_PRIVATE); return pre.getString(key, ""); }
From source file:Main.java
public static String getString(Context context, String key) { SharedPreferences sp = context.getSharedPreferences("myshop", Context.MODE_PRIVATE); return sp.getString(key, ""); }
From source file:Main.java
public static String getString(Context context, String title) { SharedPreferences sp = context.getSharedPreferences(FILENAME, Context.MODE_PRIVATE); return sp.getString(title, ""); }
From source file:Main.java
public static String getConfig(Context context, String key) { SharedPreferences sp = context.getSharedPreferences("money", Activity.MODE_PRIVATE); return sp.getString(key, ""); }