[英]How can I know that App info screen of My Application is opened
When App info screen of my Android application is opened in Settings screen, Need to draw overlay screen on top of app info screen.当我的 Android 应用程序的应用程序信息屏幕在设置屏幕中打开时,需要在应用程序信息屏幕顶部绘制覆盖屏幕。 How can I know that App info screen of My Application is opened.我怎么知道我的应用程序的应用程序信息屏幕已打开。 Do we get any callback when app info screen is opened.打开应用信息屏幕时,我们是否会收到任何回调。 ex: settings -> apps -> MyApp [Requirement is to draw overlay on this screen of my app]例如:设置 -> 应用程序 -> MyApp [要求是在我的应用程序的此屏幕上绘制覆盖]
Thanks in advance提前致谢
Do we get any callback when app info screen is opened.打开应用信息屏幕时,我们是否会收到任何回调。 ex: settings -> apps -> MyApp例如:设置 -> 应用程序 -> MyApp
No, sorry.不,对不起。
Need to draw overlay screen on top of app info screen需要在应用信息屏幕顶部绘制覆盖屏幕
I sincerely hope that this proves to be impossible, for security reasons.出于安全原因,我真诚地希望这被证明是不可能的。 Users need to be able to uninstall the app, clear data, adjust permissions, control notification behavior, etc.用户需要能够卸载应用、清除数据、调整权限、控制通知行为等。
I don't think you can tell if the user is in your app info screen, you can monitor some of the settings windows though.我认为您无法判断用户是否在您的应用程序信息屏幕中,但您可以监控一些设置 windows。 Do note that it's no longer possible to draw over any system component, I don't recall since which version of android, but it's been like this for a while, I think since Android 7.0 or so, therefore, you can't prevent the user from clicking anywhere they wish, as long as they are viewing a system ui (such as settings app, status bar and etc)请注意,它不再可能绘制任何系统组件,我不记得从哪个版本的 android,但它已经有一段时间了,我想自从 Android 7.0 左右,因此,你不能阻止用户可以点击他们希望的任何地方,只要他们正在查看系统 ui(例如设置应用程序、状态栏等)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.