gpt4 book ai didi

安卓 : Hide app content in multitasking view

转载 作者:塔克拉玛干 更新时间:2023-11-02 22:35:38 24 4
gpt4 key购买 nike

有谁知道当用户进入当前应用程序管理器时如何隐藏应用程序的内容?像这样的链接正在为 ios 解释:http://pinkstone.co.uk/how-to-control-the-preview-screenshot-in-the-ios-multitasking-switcher/

谢谢!

最佳答案

不知何故这对我不起作用..即使我读到它应该是。

android:excludeFromRecents="true"

但是,在您的 Activity 中使用它可以解决问题:

getWindow().setFlags(LayoutParams.FLAG_SECURE, LayoutParams.FLAG_SECURE);

感谢 CommonWare 和 NavjotSingh 的回答

关于安卓 : Hide app content in multitasking view,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40620630/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com