Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void savePrefrences(String key, String value)
- {
- SharedPreferences prefs = SynergyApplication._context.getSharedPreferences(SynergyApplication._context.getApplicationContext().getPackageName(), 0);
- prefs.edit().putString(key, value).commit();
- }
- public String getPrefrences(String key)
- {
- SharedPreferences prefs = SynergyApplication._context.getSharedPreferences(SynergyApplication._context.getApplicationContext().getPackageName(), 0);
- return prefs.getString(key, "");
- }
Add Comment
Please, Sign In to add comment