Reputation: 135
I want to know how to draw something on top on screen without permission request.
I had implement an app can draw something on the top on screen by this post, it worked fine before my device version update to 6.0.
When my app run on devices above 6.0, I met a permission issue that I need to ask user to request SYSTEM_ALERT_WINDOW permission in app as this post says, and it worked fine when I implement the permission request code.
But I found many apps can draw many things on top of screen without this permission on google play store, like Draw on screen, Screen Draw Screenshot, etc.
How can I implement this function with permission like these apps?
Can someone help me?
Upvotes: 0
Views: 587
Reputation: 12379
just set target sdk version = 22
and you can do it without asking permission.
Btw it is not a good practice you should absolutely use the new Runtime Permission
of 6.0
Upvotes: 2