Bug 22566 - Orientation change on Android Tablet (SM-T900) reloads mainpage WP-Emulator don't work
Summary: Orientation change on Android Tablet (SM-T900) reloads mainpage WP-Emulator d...
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.2.3
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2014-09-02 09:24 UTC by Fredy Wenger
Modified: 2014-10-17 08:47 UTC (History)
4 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 Fredy Wenger 2014-09-02 09:24:24 UTC
Xamarin.Forms V.

I have an app with a mainpage and some detail-pages.

First the mainpage is loaded, the user clicks on a button and a detail-page is loaded.
On the detail-page, the user can query data from our webservice (json).

If a detailpage is loaded on a Android-Tablet (Samsung SM-T900) and the device-orientation is changed, the MAINPAGE is reloaded / activated automatically instead that the detail-page is showed with changed orientation.
This is also true, if no data were queried (has nothing to do with the query of data)

With iOS (iPhone and iPad) it works correct.

With WP-Emulator, the device is showed in changed orientation but not the content.
=> But... I think this is a limitation of the WP-Emulator (as also MS-Content don't change the orientation)?

Comment 1 Fredy Wenger 2014-10-17 08:46:54 UTC
As I don't receive an answer to my post, I answer myself.

In the meantime, I have find out (Xamarin-Forum , that:
To enable WP to change orientation, you have to manually edit the MainPage.xaml-File in windows-project and change:
- SupportedOrientations="Portrait"
=> Then the orientation can be changed.

Not nice, that this is not a setting in the project-settings (where I have searched first)

To prevent the problem you have to manually edit the MainActivity.cs file in Android-project and change:
[Activity(Label = "Name", MainLauncher = true)] // Original
[Activity(Label = "Name, MainLauncher = true, ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.ScreenSize)] 

Also not nice, that this is not included by default.

So.. you can close this "bug"...