简体   繁体   English

Android startActivityForResult隐藏屏幕快照

[英]Android startActivityForResult hide screen shot

In Android, I call startActivityForResult to start another activity, which is an email intent, and I also want to hide the screen shot for this new activity from Android task manager. 在Android中,我调用startActivityForResult来启动另一个活动,这是一个电子邮件意图,并且我还想从Android任务管理器中隐藏此新活动的屏幕截图。 I know usually use Window.AddFlags(WindowManagerFlags.Secure) before SetContentView of Activity, but for the new activity from startActivityForResult , how to setup such flag? 我知道通常在Activity的SetContentView之前使用Window.AddFlags(WindowManagerFlags.Secure) ,但是对于startActivityForResult的新活动,如何设置此类标志? Thx 谢谢

which is an email intent 这是电子邮件的意图

I am assuming that you mean "an Intent that will resolve to some third-party activity that happens to involve email". 我假设您的意思是“一种旨在解决某些涉及电子邮件的第三方活动的Intent ”。

I also want to hide the screen shot for this new activity from Android task manager 我也想从Android任务管理器中隐藏此新活动的屏幕截图

You are not the author of the other app. 您不是其他应用的作者。 The decision of whether the other app should appear or not appear in the task manager is up to the developer of the other app, not you. 是否应在任务管理器中显示另一个应用程序的决定取决于另一个应用程序的开发人员,而不是您。

If you need this degree of control, do not display any activities from third-party apps. 如果需要这种控制程度,请不要显示第三方应用程序的任何活动。

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

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