Bug 26050 - Application data not preserved between debug sessions.
Summary: Application data not preserved between debug sessions.
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: 4.20.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
Depends on:
Reported: 2015-01-15 00:29 UTC by Jared Kells
Modified: 2017-06-28 00:10 UTC (History)
8 users (show)

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

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 Jared Kells 2015-01-15 00:29:46 UTC
Debugging an Android app has stopped preserving the application data between deployments. The data is wiped every time.

"Preserve application data/cache on device between deploys" is checked under Android Options.
"Use Fast Deployment" (debug mode only) is checked in project settings.

I am running Xamarin Android 4.20 in VS2013 and the device is a Nexus 5.
Comment 1 Jared Kells 2015-01-15 00:31:41 UTC
The relevant part of the build output is as follows:

Waiting for device..
1>Detecting installed packages
1>Detecting installed packages...
1>Removing previous version of application
1>Removing previous version of application...
1>Installing application on device
1>Copying application to device...
1>Getting installation path...
1>Using fast dev path: /storage/emulated/legacy/Android/data/com.xxxxx.xxxxxx/files/.__override__
1>Synchronizing assemblies...
1>Synchronizing assemblies
Comment 2 Joaquin Jares 2016-05-11 13:24:01 UTC
This looks android related. Moving to Android for review.
Comment 3 philip 2016-05-24 12:22:29 UTC
I have the same problem with VS2015 and latest XF alpha bits.
Comment 4 Jon Douglas [MSFT] 2017-06-27 22:37:43 UTC
I am marking this issue as NEEDINFO until we can get a reliable reproduction project, or reproduction steps that can help us CONFIRM this issue. For example, what type of data is not being preserved between deployments? Is this referring to files within the application's data/data/{package_name} folder?

Please feel free to add anyway to reproduce this to the bug report so I can come back and CONFIRM it.
Comment 5 Jared Kells 2017-06-28 00:10:22 UTC
This was fixed at some point in the last few years, it doesn't happen anymore.