One possible solution is to direct the user to the above screen if the user is running Android M or above. But, as this is classified as a dangerous permission, applications cannot request this permission to the user specifically. This setting could be found in Settings -> Apps -> Advanced (settings icon) -> Draw over other appsĪs you may be aware, Android M did introduce fine grained application permissions that the application can request for. ![]() ![]() So, instead of allowing the applications to use the overlay with just the manifest declaration, in Android M, the user needs to provide specific permission in Android settings for the app to draw over other apps. This is understandable because you can imagine a transparent application intercepting your touches or inputs. In Android M, the SYSTEM_ALERT_WINDOW permission was categorized as a 'dangerous' permission. A good example is the Facebook chatheads that float over other apps. ![]() This technique was used by several applications that required drawing over other apps.
0 Comments
Leave a Reply. |