如何修复以编程方式检测到的屏幕覆盖 [英] how to fix screen overlay detected programmatically

查看:68
本文介绍了如何修复以编程方式检测到的屏幕覆盖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我请求访问Android SDK 23中的SMS的权限(运行时权限),但问题是出现了对话框屏幕覆盖,并且未授予访问权限.我禁用了所有其他应用程序覆盖,但未进行任何更改. 我找到了此链接但没有帮助

In my app, I ask for permission to access SMS in Android SDK 23 (runtime permission) but the problem is dialog screen overlay showed up and access not granted .i disabled all another apps overlay but nothing changed. I found this link but not helped

问题是我该如何以编程方式修复它?

and the question is how can I fix it programmatically?

推荐答案

好,

最后,我找到了解决方案,我在网上搜索了所有内容,却找不到有用的东西. 答案是:当您请求新权限时,请勿执行其他操作,例如显示吐司或....就我而言,我重新启动应用程序并要求下一个权限,我使用

finally I found the solution, I search all the web and can't find anything useful. The answer is: When you ask for new permission don't ever do something else like showing toast or.... In my case I restart my app and ask for the next permission I use this code for restart the app.

祝你好运.

这篇关于如何修复以编程方式检测到的屏幕覆盖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆