ISharedPreferences
sp=GetSharedPreferences("login",FileCreationMode.Private);
string username=sp.GetString("userName","");
ISharedPreferences
sp=GetSharedPreferences("login",FileCreationMode.Private);
ISharedPreferencesEditor editor =
sp.Edit();
editor.PutString("userName",
"uname");
editor.Commit();
原文:http://www.cnblogs.com/caoxin/p/3598448.html