如何以编程方式检查已安装的其他应用是否已授予悬浮窗权限?

huangapple 未分类评论48阅读模式
英文:

How to programmatically check installed other application has grant the draw over apps permission?

问题

如何以编程方式检查“设置” ->“应用程序” ->“在其他应用程序上方绘制”的权限是否已授予其他已安装的应用程序?
我使用以下函数来检查应用程序的“在其他应用程序上方绘制”的权限。
Settings.canDrawOverlays(this)
这将检查应用程序本身是否被授予了权限,但我想检查其他应用程序的权限。
谢谢

英文:

How can I programmatically check the permission in Settings -> Apps -> Draw over other apps is granted for other installed apps?
I used the below function to check the Draw over other apps permission for the app.

Settings.canDrawOverlays(this)

This will check the application itself permission is granted or not but I want to check for the other app.
Thanks

huangapple
  • 本文由 发表于 2020年5月19日 17:15:09
  • 转载请务必保留本文链接:https://java.coder-hub.com/61887437.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定