android-overlay

How Do I determine which app is causing the “Screen Overlay Detected” error?

╄→尐↘猪︶ㄣ 提交于 2020-01-01 12:01:19
问题 Let me preface this with I have already read through Android "Screen Overlay Detected" message if user is trying to grant a permission when a notification is showing and I understand exactly what the overlay problem is. I also understand how to request it as well as how to check if my current running app has permission to draw on overlays (!Settings.canDrawOverlays(this)). I was getting scolded for my app because every time a permission request would popup, the overlays popup would be shown

Android Overlay at bottom of the screen

假如想象 提交于 2019-12-23 02:20:20
问题 I want to implement the ads in my app but I want to implement the ads on an overlay view, The main content of the app should be foreground and the overlay is top of the main content and I want to align the overaly at the bottom of the screen. Kindly tell me how I can achieve the overlay at the bottom of my screen??? 回答1: The simplest way to achieve this is to use a FrameLayout as your root view. Here is some code to demonstrate this. I haven't tested this particular example, but it should

Overlaying a view does not disable actions on underlying view

拟墨画扇 提交于 2019-12-07 00:00:44
问题 I have 2 views : View A and view B. View A is rendered and has actions to input a text value. Im displaying an overlay view - View B on top of this. I expect that the actions on View A get disabled but they do not and im still able to type in the input field on View A. How can i disable this ? 回答1: The reason is that your overlay is not consuming the touch events , so by design if a view is not consuming touch events the events are passed to underlying view in the view model. So the long

Android Wear Overlay Pass on Touch Events

谁都会走 提交于 2019-12-06 10:18:58
问题 I have an Android Wear app in which I use a transparent overlay view to recieve touch events. I need to be able to receive all touch events that happen anywhere on the screen, and also be able to see their coordinates. All research I have found says that I cannot recieve all touch events and pass them on. However, Wear Mini Launcher and Swipify are both doing something like this. Here is where I have looked: Android overlay to grab ALL touch, and pass them on? https://stackoverflow.com

Overlaying a view does not disable actions on underlying view

孤人 提交于 2019-12-05 04:32:47
I have 2 views : View A and view B. View A is rendered and has actions to input a text value. Im displaying an overlay view - View B on top of this. I expect that the actions on View A get disabled but they do not and im still able to type in the input field on View A. How can i disable this ? The reason is that your overlay is not consuming the touch events , so by design if a view is not consuming touch events the events are passed to underlying view in the view model. So the long answer is make your overlay touchable, focusable , and touch listener and return true . short answer is add

Android Wear Overlay Pass on Touch Events

岁酱吖の 提交于 2019-12-04 13:41:59
I have an Android Wear app in which I use a transparent overlay view to recieve touch events. I need to be able to receive all touch events that happen anywhere on the screen, and also be able to see their coordinates. All research I have found says that I cannot recieve all touch events and pass them on. However, Wear Mini Launcher and Swipify are both doing something like this. Here is where I have looked: Android overlay to grab ALL touch, and pass them on? https://stackoverflow.com/questions/19356834/overlay-view-which-intercepts-some-events Android - Intercept and pass on all touch events

How Do I determine which app is causing the “Screen Overlay Detected” error?

一曲冷凌霜 提交于 2019-12-04 10:35:53
Let me preface this with I have already read through Android "Screen Overlay Detected" message if user is trying to grant a permission when a notification is showing and I understand exactly what the overlay problem is. I also understand how to request it as well as how to check if my current running app has permission to draw on overlays (!Settings.canDrawOverlays(this)). I was getting scolded for my app because every time a permission request would popup, the overlays popup would be shown and even though users gave permission for my application to draw overlays, they could never get past the

How to handle SYSTEM_ALERT_WINDOW permission not being auto-granted on some pre-Marshmallow devices

折月煮酒 提交于 2019-11-27 03:42:12
I've been getting reports of some Xiaomi devices (e.g. Mi 2, running API level 21) not showing overlays. My app targets API 23. There are several posts out there regarding this. It seems that MIUI devices do not enable this permission at install time (unlike other pre-Marshmallow devices). Unfortunately, Settings.canDrawOverlays() only works on Android 23+. What is the correct way to check whether this permission has not yet been enabled pre-Marshmallow? Is there an Intent to take the user to the relevant MUIU settings page? Maybe: new Intent("android.settings.action.MANAGE_OVERLAY_PERMISSION"

How to handle SYSTEM_ALERT_WINDOW permission not being auto-granted on some pre-Marshmallow devices

≯℡__Kan透↙ 提交于 2019-11-26 10:34:21
问题 I\'ve been getting reports of some Xiaomi devices (e.g. Mi 2, running API level 21) not showing overlays. My app targets API 23. There are several posts out there regarding this. It seems that MIUI devices do not enable this permission at install time (unlike other pre-Marshmallow devices). Unfortunately, Settings.canDrawOverlays() only works on Android 23+. What is the correct way to check whether this permission has not yet been enabled pre-Marshmallow? Is there an Intent to take the user