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 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.
If you start an application from Visual Studio and you try to resume the application from the launcher or the recent app list of your device, the app will not be resumed but will be restarted instead.
This makes it hard to debug the resuming scenario as the activities are not resumed but are created again.
Previously the app was resuming correctly when started from Visual Studio.
Occurs with and without debugging, in debug and release builds.
Note that static variables keep their values between the two starts, resulting in problems if activities are not designed to be created multiple times.
=== Reproduction ===
Create an Android project
Override OnCreate and OnResume
Place breakpoints in both
Start debugging (F5)
Note that OnCreate was called
Press the home button of the device and return to the application using the menu of your device
Note that OnCreate was called again instead of OnResume
Xamarin 3.11.590.0 (5160db7)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin.Android 18.104.22.168 (d419c934e6ce2113653ff4c40214e3a5d5a69440)
Visual Studio plugin to enable development for Xamarin.Android.
Issue still present after updating to the latest stable:
Xamarin 3.11.836.0 (ed5c750)
Xamarin.Android 22.214.171.124 (f98871a95a479f6d71b3067b7e5834d41fcb2118)
Today, I have checked this issue after following the steps mentioned in bug description but not able to reproduce it, When I Press the home button of the device and return to the application using the menu of device then On Resume method is called not On create.
Here is the screencast for the same:http://www.screencast.com/t/SIfZizS5piq4
Please let me know, if I missed anything here.
Resolving as Not_Reproducible
Please feel free to reopen and provide the requested information if needed.