How to save and use a pair of key and value in a reference ?
SharedPreferences settings = getSharedPreferences("settings", 0);
SharedPreferences.Editor editor = settings.edit();
editor.putString("name", "yourname");
editor.commit();
String url = settings.getString("name", "noname");
No comments:
Post a Comment