How to prevent uninstalling an Android application during deployment using Xamarin Studio?

Each time I deploy a new version of an Android application with Xamarin Studio, the application is first uninstalled and then installed again. This causes some problems for me because I use XPrivacy on my devices.

I wonder if there is a way to simply deploy the new version without first deleting them (for example, when deploying using Android Studio or Eclipse)?

+5
source share
1 answer

When creating and deploying applications on your device, by default, Xamarin will delete all existing data / application caching. This is not always ideal as it dumps your data as if it were fresh.

To save the data, you need to update the parameter:

  • In Xamarin Studio, select "Tools"> "Options"> "Projects"> "Android ...". Check "Save data / cache between application deployments"

  • In Visual Studio, select "Tools"> "Options"> "Xamarin"> "Android Settings" ... Check "Save data / cache between application deployments"

After that, all the general settings or data files created in the local folder of the application will remain.

+5
source

Source: https://habr.com/ru/post/1204655/


All Articles