◆get SharedPreferences pref = getSharedPreferences(VocabTestMain.PREF_APPID,0);
String username = pref.getString(VocabTestMain.PREF_USERNAME, "");
◆put SharedPreferences pref = getSharedPreferences(VocabTestMain.PREF_APPID, 0);
pref.edit().putString(VocabTestMain.PREF_USERNAME,txtName.getText().toString()).commit();