Android splash screen doesn't show if orientation is wrong

I have found a lot of issues with orientation and resolution on Android.
I have a couple of fixes for this, you can find the build here

You’d have to set ScreenOrientation = ScreenOrientation.FullSensor and leave it at that.
It will take the orientation from _graphics.SupportedOrientations.
Also, don’t set the graphics.PreferredBackBufferWidth/Height. On android those values are set automatically to the native window bounds.

here is my complete config.

[Activity(Label = "myGame"
	, MainLauncher = true
	, Icon = "@drawable/icon"
	, AlwaysRetainTaskState = true
	, LaunchMode = LaunchMode.SingleTask 
	, ScreenOrientation = ScreenOrientation.FullSensor
	, ConfigurationChanges = 
		ConfigChanges.Orientation | 
		ConfigChanges.Keyboard | 
		ConfigChanges.KeyboardHidden |
		ConfigChanges.ScreenSize |
		ConfigChanges.ScreenLayout |
		ConfigChanges.UiMode |
		ConfigChanges.SmallestScreenSize
)]

Although I do not have a splash screen, I have an intro screen implemented in code.
I don’t know if that will fix your problem.

1 Like