英文:
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
专注分享java语言的经验与见解,让所有开发者获益!
评论