简体   繁体   English

我怎么知道我的应用程序的应用程序信息屏幕已打开

[英]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.

相关问题 我怎么知道我的应用是由 Google 助理打开的,而不是正常启动的 - How can I know that my app was opened by Google Assistant, instead of just normally launched 我如何知道用户是否已安装并打开我的应用程序? - How do I know if a user has my app installed and opened? 如何通过亚行为我的应用启动“应用信息”屏幕? - How can I launch the App Info screen for my app through ADB? Android:如何在屏幕上获取当前打开的应用程序名称 - Android: How can I get current opened application name on screen 如何以编程方式启动android应用程序信息屏幕? - How can I start android application info screen programmatically? 我如何在Android中启动应用程序信息屏幕? - how i can start application info screen in android? 我怎么知道我的应用程序已被删除? - How can I know if my app is removed? 我怎么知道那个特定的应用程序。 在android中通过我的应用程序启动 - how can I know that certain app. in android is launched through my Application 如何知道我的应用在屏幕解锁中处于前台 - How to know that my app is in foreground on screen unlock 当我返回之前打开的应用程序时,如何禁用android的屏幕状态自动保存和加载功能? - How to disable the automatic saving and loading of the screen state by android when I return to my previously opened app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM