Disabling Multi-window feature for Android N not working for an activity

前端 未结 3 2076
夕颜
夕颜 2021-02-08 10:54

I want to disable multi-window support for an activity in my app. I have set resizeableActivity to false in my Manifest but when I long press recent app icon, the a

相关标签:
3条回答
  • 2021-02-08 11:32

    The activity that is at the root of the task controls the window size. Your choices are:

    1. Trace back to all possible task root activities in your app and ensure they all also have android:resizeableActivity="false"

    2. Force this activity into another task, via Intent flags when you start it or manifest settings

    0 讨论(0)
  • 2021-02-08 11:33

    I have meet this problem before, and I try many time find that your must add android:launchMode="singleTask" && android:resizeableActivity="false" at the same time.

    0 讨论(0)
  • 2021-02-08 11:54

    [UPDATE] set android:resizeableActivity="false" in application tag. This will work now.

    0 讨论(0)
提交回复
热议问题