How can I disable multiwindow mode for an Activity in Android N+

后端 未结 3 1041
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-02 07:00

In the developer preview for Android N, multi-window support is enabled by default. How can I disable it for activites? Also what will happen if a multi-window enabled app lau

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-02 07:40

    Note: While starting a Unresizable Activity You should also add Intent.FLAG_ACTIVITY_NEW_TASK flag to Intent.Otherwise it will inherit the properties from the root activity.

    Add android:resizeableActivity="false" for your Activity in your Manifest file or you can also add this for your Application:

    
    

提交回复
热议问题