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.
Created attachment 9869 [details]
NavigationPageSample Same as 26771
Based on this bug https://bugzilla.xamarin.com/show_bug.cgi?id=26771, there is a slightly different scenario which is also problematic. Where resuming the application and trying to change the MainPage fails, with nothing happening.
**Steps to Reproduce:**
Use the attached Test Case project
1. Launch Application on Android
2. Press the Back hardware button (Make sure not to press home, use the back
3. Hold down the home or recent apps button (depends on your version of
4. Select Application from current running apps list to re-launch
5. Press Change Main Page Button
6. Nothing happens
Should set Page 2 as MainPage
**Build Date & Platform:**
Created attachment 9873 [details]
Zip Xamarin Logs
I have checked this issue with the help of test steps given in bug description and able to reproduce the reported behaviour.
Adb Logcat : https://gist.github.com/Udham1/4e34236ac4384b454bb7
Application Output : https://gist.github.com/Udham1/e0fd59070fb01cc29961
Environment Info :
Xamarin.Forms : 220.127.116.1131-pre4
Microsoft Visual Studio Professional 2013
Version 12.0.31101.00 Update 4
Microsoft .NET Framework
Xamarin 3.9.325.0 (96e7814)
An update to the above comment : I have checked this issue with android device Samsung Galaxy Note3 (android 4.4.2).
After further research I found the following forum post :-
In there it mentions the MoveTaskToBack method, so adding the following code to the attached sample's MainActivity seems to improve things:-
public override bool OnKeyDown(Keycode keyCode, KeyEvent e)
if (NavigationManager.CurrentNavigationPage.Navigation.NavigationStack.Count == 1)
if (keyCode == Keycode.Back && e.RepeatCount == 0)
return base.OnKeyDown(keyCode, e);
I tested this in AppCompat with XF 18.104.22.168-pre2. I can't duplicate it. If you submit an updated repro, I'd like to take a look.