How to disable the feature of split screen in nougat in android through programatically?

2k views Asked by At

I am making an app. i don't want to my app split in screen as mention in the nougat version. Can anybody tell me how can i do this that my app does not split into screen.

3

There are 3 answers

1
DaGee On BEST ANSWER

In you manifest add this in the application tag, so it will look like this:

<application
android:resizeableActivity="false" >
... 
</application>
0
Kunal Vaja On

in mainfest

android:resizeableActivity="false"

if you want to disable particular Acticity or screen

<activity android:name=".SomeActivity"
    android:label="@string/app_name"
    android:resizeableActivity="false" />

or if you want to disable it in your entire app

<application 
   android:resizeableActivity="false" >
. . .

2
sunfly On

you need set targetSdkVersion = 24 or higher. otherwise it will not working.