Questions tagged [android-overlay]

Base class representing an overlay which may be displayed on top of a map.

58 questions
17
votes
5 answers

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

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…
Mark
  • 7,446
  • 5
  • 55
  • 75
11
votes
4 answers

java.lang.IllegalStateException: ViewTreeLifecycleOwner not found from androidx.constraintlayout.widget.ConstraintLayout

When I try to insert Compose in overlay(draw over other apps) with XML I get this exception: java.lang.IllegalStateException: ViewTreeLifecycleOwner not found from androidx.constraintlayout.widget.ConstraintLayout{d596746 V.E...... ......ID…
Renattele Renattele
  • 1,626
  • 2
  • 15
  • 32
11
votes
1 answer

Overlaying a view does not disable actions on underlying view

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…
lokoko
  • 5,785
  • 5
  • 35
  • 68
9
votes
1 answer

Android - overlay screen including status bar content

I want to make an overlay screen which overlay entire screen including the status bar and navigation bar. I spends few hours of Googling/research still no luck. This is my code: MainActivity.java (launcher): package…
林果皞
  • 7,539
  • 3
  • 55
  • 70
4
votes
2 answers

Dialog is not visible when i use TYPE_APPLICATION_OVERLAY

I am showing a dialog box on top of other applications. it is working till i use WindowManager.LayoutParams.TYPE_SYSTEM_ALERT As i am changing my target version to 26, i should not use TYPE_SYSTEM_ALERT, So i used…
simple
  • 159
  • 1
  • 9
4
votes
1 answer

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

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…
4
votes
0 answers

SuperToolTip Issue Library not being referenced using Eclipse ADT (Latest Revision)

I've added the library to my dependencies [Clean then Project > Properties > Java Build Path > Projects tab > Add] but when I input the required code i get an error. When i mouse over the error it says "Fix Project Setup" but when i click that i get…
3
votes
1 answer

Full screen TYPE_ACCESSIBILITY_OVERLAY

I'm new to the accessibility stuff on Android. While going through the classes and documentation I came across TYPE_ACCESSIBILITY_OVERLAY inside the WindowManager class. The documentation says (only the relevant text) For example, if there is a…
Rajeev
  • 1,374
  • 1
  • 11
  • 18
3
votes
1 answer

Android Wear Overlay Pass on Touch Events

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…
user3771655
  • 185
  • 1
  • 10
3
votes
0 answers

How to Hide Status / Notification Bar while Service is running?

I have an app which place Overlay view in Home Screen implemented using service.. Now I want to hide Status/Notification Bar which displays time,battery and mobiletower icon. I've tried to hide the status bar using…
3
votes
0 answers

Android : adding transformed overlay on top of camera view

In my android project I want to add an overlay (which is simple image with text on it) on top of the camera view. The overlay is not simple rectangle but it is transformed at each camera frame. What I'm looking for is kind of like image below: I'm…
3
votes
1 answer

I cannot dismiss the customized alertdialog box

I need to create an alertdialog box with two buttons in it as a view. And i created it but the problem is i cannot dismiss it after the action performed when clicking on one of the views.That means in first button this is what i am looking for My…
2
votes
0 answers

How to show a window overlay over the accessibility menu in android 10?

I have done some code which is working fine everywhere except settings app -> accessibility menu or device admin apps menu I need to display overlay in settings -> accessibility and device admin apps menu I have a application where i see this type…
2
votes
3 answers

Android Runtime Resource Overlay with custom attributes

I'm trying to use the Runtime Resource Overlay (RRO) mechanism to overlay an xml resource, which is using custom attributes and custom namespace. When building the overlay APK the aapt2 (link) throws an attribute not found error. How do I make known…
Hunter
  • 21
  • 4
2
votes
0 answers

Alternative for SYSTEM_ALERT_WINDOW to display an overlay across app activities

Requirement is to add a chat feature in the app, that would be available across all activities in minimized view once initiated - you can start a chat within one activity and keep it live when changing activities. Solution -> Use this permission,…
Ritt
  • 3,181
  • 3
  • 22
  • 51
1
2 3 4