Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
Private data (DB, SharedPreferences, ...) are deleted frequently when we are debugging our Xamarin.Android App. This does not happen always, but approximately once every two debug sessions. When we deploy a new version of the App to the device without the debugger attached, the private data is not deleted.
This looks like a bug for us.
We use the latest version of Xamarin.Android with Visual Studio 2013 (Update 1)
Thanks in advance for investigating!
There is a setting which you can use to preserve the private data between builds. In Visual Studio go to
Tools->Options -> Xamarin -> Android Settings
Make sure "Preserve application data/cache on device between deploys" is checked.
What was probably happening was the .apk was being rebuilt which resulted in the app being uninstalled and the cache removed. Using this flag should fix that issue.