Я пытаюсь сохранить некоторые настройки, но учебник, которому я следую (учебник по Android), не помогает, так как я застрял в первой строке кода, поскольку кажется, что monodroid делает это по-другому?
select your mode to be either private or public.
int mode= Activity.MODE.PRIVATE;
// get the sharedPreference of your context.
SharedPreference s mySharedPreferences ; mySharedPreferences=getSharedPreferences(“Name_of_your_preference”,mode);
// retrieve an editor to modify the shared preferences
SharedPreferences.Editor editor= mySharedPreferences.edit();
/* now store your primitive type values. In this case it is true, 1f and Hello! World */
editor.putBolean(“myBoolean”,true);
editor.putFloat(“myFloat”,1f);
editor.putString(“myString”,” Hello! World”);
//save the changes that you made
editor.commit();
Я не вижу Activity.MODE.PRIVATE;
в монодроиде.