Every time I deploy a new version of an Android app with Xamarin Studio the app gets uninstalled first and then installed again. This is causing some problems for me because I'm using XPrivacy on my devices.
I wonder if there is a way to simply deploy the new version without uninstalling them in the first place (like when deploying with Android Studio or Eclipse)?
Use AppLock If you want to prevent other users from uninstalling your apps, launch AppLock, go to Privacy, and under Advanced, lock the Settings app. In this manner, users will need to use the authentication method you previously set to open the Settings app.
When building and deploying apps to your device, by default Xamarin will delete any existing application data/cache. This is not always ideal as it resets your data as if it were a fresh install.
To preserve data, you need to update the option:
In Xamarin Studio, select Tools > Options > Projects > Android... Check "Preserve data/cache between application deploys"
In Visual Studio, select Tools > Options > Xamarin > Android Settings... Check "Preserve data/cache between application deploys"
Once you do this, any shared preferences or data files created in the local application folder will remain.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With