Maui Essentials will always open settings in split-screen if above Android N
See original GitHub issueDescription
Short Description: ActivityFlags.LaunchAdjacent is meant to open as a split-screen if possible, you can see this article about this:
https://developer.android.com/reference/android/content/Intent#FLAG_ACTIVITY_LAUNCH_ADJACENT
Steps to Reproduce
- Create or use with any MAUI Essentials or Xamarin.Essentials project.
- Use AppInfo.ShowSettingsUI().
It will appear as a split-screen even if your app does not support it.
Version with bug
Unknown/Other (please specify)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android N+
Did you find any workaround?
Since I didn’t want any intent to split-screen, I did this:
public override void StartActivity(Intent intent)
{
if (Build.VERSION.SdkInt >= BuildVersionCodes.N)
intent.RemoveFlags(ActivityFlags.LaunchAdjacent);
base.StartActivity(intent);
}
So it could cancel the previous flag
Relevant log output
No response
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Launcher opens app in split-screen : r/dotnetMAUI
I have developed an .net maui application can someone please help me, why Launcher opens any other application in split screen.
Read more >Xamarin/MAUI Open Google Maps without going into split ...
To try and stop this happening, I have tried adding ResizeableActivity = false in both the Activity and the Application. This doesn't stop...
Read more >Deploy the Android 7 Multi-Window Mode via Xamarin
These apps will run side-by-side in either landscape (left to right) or portrait (one above the other) in a split screen view on...
Read more >How to Turn OFF / ON Split Screen on Android ... - YouTube
If you would like to use split screen on an Android device, be sure to check out our ... How to open divided...
Read more >Project property settings in Visual Studio - .NET MAUI
Describes the Visual Studio project properties available to a .NET MAUI app. The properties and settings are related to building the app, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Not reproducible with Android 11. It didn’t appear as a split-screen.
@YuqinSong Have you tried with a physic phone instead of an emulator? Samsung phones might be affected by this, like my Samsung Note 9 (Android 10)