I'm migrating an Android app written in Java to Xamarin.
The old app (Java) stores some data in the AccountManager and a SQLite DB and I'm looking to migrate that over to a new format when existing users install the new app (Xamarin) as an update so they won't loose their existing data
I'm looking to test the migration code, so I installed a version of the old app on a physical device and then I deployed the new version (a version higher) to the same device but each time I do that, Visual Studio removes the older app and before installing the new app which makes it impossible to debug the migration code (the AccountManager entry which contains data is nuked the moment the older version is uninstalled before launch).
Some things I did try before posting here:
I've enabled "Preserve data/cache between application deploys" (https://forums.xamarin.com/discussion/96902/android-app-keeps-getting-uninstalled)
Enabled Fast Deployment
Nothing seems to work - I just need the data preserved between deployments so my migration code has a chance to run.
I'm using Visual Studio 2017 for Mac if that's relevant