Xamarin screen orientaton not working on Nexus 9 emulator

Anas Guibene 491 Reputation points
2021-08-03T11:38:15.703+00:00

How can I force the screen orientation to landscape on the Nexus 9 emulator? I used RequestedOrientation = ScreenOrientation.Landscape in MainActivity.cs and it works well on all other emulators The problems show up only on Nexus 9 Any solutions?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,363 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,010 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.