Xamarin.Android中实现登录信息保存记住密码

存储登录信息
ISharedPreferences prefs = PreferenceManager.GetDefaultSharedPreferences (this);
ISharedPreferencesEditor editor = prefs.Edit ();
editor.PutBoolean ("key_for_my_bool_value", mBool);
editor.Commit();
editor.Apply();
读取保存的登录信息
ISharedPreferences prefs = PreferenceManager.GetDefaultSharedPreferences (mContext);
mBool = prefs.GetBoolean ("key_for_my_bool_value", false);
mInt = prefs.GetInt ("key_for_my_int_value", 0);