Bug 44018 - Back button not working on root page in app with FormsAppCompatActivity
Summary: Back button not working on root page in app with FormsAppCompatActivity
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.3.2
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-09-06 13:25 UTC by Saskia
Modified: 2016-09-15 18:23 UTC (History)
7 users (show)

Tags: BZCU ac
Is this bug a regression?: Yes
Last known good build:

Test app with back button problem (89.54 KB, application/x-zip-compressed)
2016-09-06 13:27 UTC, Saskia
Test app with working back button (85.62 KB, application/x-zip-compressed)
2016-09-06 13:28 UTC, Saskia

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 Saskia 2016-09-06 13:25:10 UTC
When an app is using FormsAppCompatActivity (for styling the toolbar), the app is not closed when pressing the hardware back button on the root page.
When the second page is opened, the back button navigates back to the first page.
After closing the second page, and pressing the back button on the root page, the app closes.

When the app is using FormsApplicationActivity (default), the app is always closed when the back button is pressed.

I have added 2 test projects:
 - BackButtonDefault: app using FormsApplicationActivity, no problems with back button;
 - BackButtonAppCompatAct: app using FormsAppCompatActivity, bug with back button on first opening root page.

Kind regards,
Comment 1 Saskia 2016-09-06 13:27:09 UTC
Created attachment 17340 [details]
Test app with back button problem
Comment 2 Saskia 2016-09-06 13:28:10 UTC
Created attachment 17341 [details]
Test app with working back button
Comment 3 Shane 2016-09-08 05:18:19 UTC
I'm running

And having this same issue
Comment 5 Samantha Houts [MSFT] 2016-09-13 16:55:24 UTC
Should be fixed in 2.3.2 stable. Thank you!
Comment 6 Saskia 2016-09-15 11:39:49 UTC
Tested with Xamarin.Forms
Problem is solved.
Comment 7 Parmendra Kumar 2016-09-15 16:57:05 UTC
I have checked this issue with Xamarin.Forms and observed that I am still facing same issue.

Screencast: http://www.screencast.com/t/3K9dBUjuGPw

Hence reopen this issue.

Comment 8 Parmendra Kumar 2016-09-15 18:22:57 UTC
After clean the solution its working fine with Xamarin.Forms and its working fine.

Hence closing this issue