I've got problem with sharedPreference for Android application developed in Visual Studio.
Each time I've change my code and rebuild the project and start to debug application, sharedPreference settings are lost.
I expected that those settings will be accessable after reinstall.
When I use sharedPreference to store my value and then close down my application. After reopen my app settings are loaded correctly.
I'm using this code:
public string LastLogin
return sharedPreference.GetString(ConstLastLogin, "");
where for sharedPreference I used several methods:
sharedPreference = PreferenceManager.GetDefaultSharedPreferences(Application.Context);
sharedPreference = context.ApplicationContext.GetSharedPreferences("WMS", FileCreationMode.Private);
How to keep this settings after reinstall?