简体   繁体   English

禁用某些应用的画中画模式

[英]Disable picture-in-picture mode for some app

如何禁用应用程序的画中画模式(使用代码)或至少将用户导航到该应用程序的画中画设置

You can disable or enable picture-in-picture for specific apps by going to您可以通过转至禁用或启用特定应用程序的画中画

Android settings > Apps & notifications > Advanced > Special access > Picture-in-picture. Android 设置 > 应用和通知 > 高级 > 特殊访问 > 画中画。

Sadly, this doesn't seem to be a Settings page that you are able to open up programmatically (you can find a list of all the Settings pages you can open using Intents here ), and it doesn't seem to be able to be done programmatically- at least for other apps.遗憾的是,这似乎不是您能够以编程方式打开的设置页面(您可以在此处找到可以使用 Intent 打开的所有设置页面的列表),而且似乎无法打开以编程方式完成 - 至少对于其他应用程序。 If you want to disable picture-in-picture for your own app then just add android:supportsPictureInPicture=”false” to your AndroidManifest file.如果您想为您自己的应用禁用画中画,那么只需将android:supportsPictureInPicture=”false”到您的 AndroidManifest 文件中。

Your best bet for disabling picture-in-picture for other apps is to tell the user to manually navigate to the settings page mentioned above to turn it off themselves.为其他应用禁用画中画的最佳方法是告诉用户手动导航到上述设置页面以自行关闭它。

Hope this helps!希望这可以帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM