protected string retrieveset(string name)
{
//retreive
var prefs = Application.Context.GetSharedPreferences("MyApp", FileCreationMode.Private);
var somePref = prefs.GetString(name, null);
//Show a toast
//RunOnUiThread(() => Toast.MakeText(this, somePref, ToastLength.Long).Show());
return somePref;
}
protected void saveset(string name,string val1){
//store
var prefs = Application.Context.GetSharedPreferences("MyApp", FileCreationMode.Private);
var prefEditor = prefs.Edit();
prefEditor.PutString(name,val1);
prefEditor.Commit();
}
'프로그래밍언어 > C#' 카테고리의 다른 글
원클릭출첵 (0) | 2014.08.24 |
---|---|
C#용 httppost함수 (0) | 2014.08.24 |
Xamarin Toast메세지 (0) | 2014.08.24 |
xamarin 값 저장 (0) | 2014.08.24 |
C# 소켓통신 (0) | 2014.06.16 |