Bug 7050 - Application deployment deletes data files
Summary: Application deployment deletes data files
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Add-in ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2012-09-10 16:30 UTC by Randy
Modified: 2016-08-03 15:37 UTC (History)
3 users (show)

Is this bug a regression?: ---
Last known good build:

sshot (82.49 KB, image/png)
2012-09-24 04:05 UTC, Atsushi Eno

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:

Description Randy 2012-09-10 16:30:45 UTC
With the latest update (mono for android 4.2.5, monodevelop deploying a debug application to a device will delete all files from the application files folder [System.Environment.GetFolderPath (System.Environment.SpecialFolder.Personal)]

This wasn't happening with the previous version. My application under development stores preference data in that folder and the file would be gone after deploying a new version from MonoDevelop.

It acts like Monodevelop is ignoring the "Fast deployment" option, which is checked. It also removes the application icon from the home page screen during the deployment, which it didn't do before.

The target platform is a Samsung Galaxy Tab 2 but i don't think that is the problem.

This started after the above update, no code or settings were changed.
Comment 1 Atsushi Eno 2012-09-19 08:12:09 UTC
Could you please check if the checkbox "Preserve data/cache between application deploys" in "Mono for Android" configuration settings checked?

If it is checked, that is the expected behavior. In 4.2.5 we made some bugfixes in our code regarding deployment to android, which likely "fixed" some incomplete stuff. Whether it is fastdev or not and whether it should clean up app storage or not, should be different options.

With 4.2.5 or later, if you need to preserve the data used by applications, please turn on that checkbox.
Comment 2 Randy 2012-09-19 13:48:28 UTC
I'm using MonoDevelop on a Mac and don't see the requested checkbox. Some websearches have referred to this setting on Visual Studio but I don't see the equivalent option on MonoDevelop.
Comment 3 Atsushi Eno 2012-09-24 04:05:23 UTC
Created attachment 2606 [details]

Please make sure you checked the correct configuration window. The attached screenshot shows where it should be seen. If you don't see it, try updating to 4.2.6 beta. If it still does not show up on 4.2.6 please attach your screenshot of the corresponding configuration dialog.
Comment 4 Randy 2012-09-24 12:29:16 UTC
That was the right setting. I just hadn't found it at the bottom of the list.