Questions tagged [system-alert-window]

Allows an app to create windows using the type TYPE_SYSTEM_ALERT, shown on top of all other apps. Very few apps should use this permission; these windows are intended for system-level interaction with the user.

Allows an app to create windows using the type TYPE_SYSTEM_ALERT, shown on top of all other apps. Very few apps should use this permission; these windows are intended for system-level interaction with the user. https://developer.android.com/reference/android/Manifest.permission.html#SYSTEM_ALERT_WINDOW

61 questions
1
vote
0 answers

Android ImageView Pinch Zoom and Rotation not working on Class which extends Service

I am trying to implement an app that draws on top of other application using android.permission.SYSTEM_ALERT_WINDOW. It displays a straight line(ImageView) on screen that can be dragged(One Finger), zoomed(pinch zoom) and rotated(Two Finger). I am…
1
vote
0 answers

Android how to make a window alert on top view without ask SYSTEM_ALERT_WINDOW

I would like to make a window alert view on top view by using SYSTEM_ALERT_WINDOW and when I use my app I need to accept "Draw over Apps" popup. I downloaded DU Recorder app and this application also seems to use this technique but it doesn't show…
1
vote
1 answer

How to check for apps which has Draw over other apps as True?

I am a bit puzzled over getting active system alert window permissions for a package in Android. I am using the code below, but this code returns 0 even if we disallow that app from "Draw over other app". Any Pointers?. My use case is to have a…
Ravi Singh
  • 11
  • 3
1
vote
1 answer

is it possible to set fully transparent background to the layout of the service class

I am running a service of type SYSTEM_ALERT_WINDOW and i have inflated a layout to the service private void createLayoutForServiceClass() { inflater=(LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE); windowManager=(WindowManager)…
1
vote
2 answers

How to disable status bar in Oreo?

There are many question related to disable status bar. I tried that way. But did not work in Android 8.0. because according to Google Document Alert windows If an app uses the SYSTEM_ALERT_WINDOW permission and uses one of the following window types…
Chirag Savsani
  • 6,020
  • 4
  • 38
  • 74
1
vote
2 answers

how to make overlay window touchable

i'm making a feature in my app that display an overlay window with text on the screen, when it appears then i try to touch that window it actually touches behind that window i need to make that window touchable , which params should i use ? here is…
1
vote
2 answers

Avoid Screen Overlay Detected for service that uses SYSTEM_ALERT_WINDOW

My app main usage is overlay, the overlay is running from a service. Android Security add the nice "Screen Overlay Detected" I want to avoid "Screen Overlay Detected" when user tries to change permissions. so... I've add an AccessiblityService that…
Rock_Artist
  • 555
  • 8
  • 14
1
vote
0 answers

Facebook and MusixMatch like Floating Notification Bubble

I am adding a feature that resembles, Facebook Messenger 'ChatHeads', or Musixmatch lyrics feature. I have a service that creates a floating notification bubble (like Messenger chathead). I am inflating a layout and adding that view to the window…
Arjun Issar
  • 672
  • 4
  • 13
  • 32
1
vote
0 answers

Marshmallow Draw over other apps issue

We have been working on "Draw over other apps" permission to develop a cool function for our app on Marshmallow. Our app's new feature worked perfectly with the very first installation of our app. We didn't have any issue with "Draw over other apps"…
1
vote
0 answers

Android : "Screen overlay detected" when scanning for MetaWear tag

I got this nice new MetaWear C device, and I've been building an Android app that collects accelerometer data, no problem. Except all the sudden, when I start the scan via the BleScannerFragment, I get, following the location permission request, the…
Sean
  • 445
  • 1
  • 5
  • 10
0
votes
0 answers

Start activity from background on Android 13+ with lock task mode

I'm trying to start the activity of an app from a foreground service (the activity then starts the lock task mode and essentially "locks" the device). As I'm targeting devices with Android 13+, starting the activity from background requires to…
0
votes
1 answer

Is possible to implement TextField in system_alert_window Fluttter?

I used system_alert_window this library for implement sytem alert window. I need a Textfield on this dialog. How do we implement this ? Or is there other way to bring textfield in System alert window ? SystemWindowHeader header =…
Anand
  • 4,355
  • 2
  • 35
  • 45
0
votes
0 answers

Make System alert window run nicely

I am new to android dev and little knowledge of java.I want to know how to inflate a layout from service using SYSTEM_ALERT_WINDOW public void checkDrawOverlayPermission() { /* check if we already have permission to draw over other apps */ …
0
votes
0 answers

Android app crashes without any exception, when trying to start an Activity from a foreground service

When I try to start an activity from a foreground service and app is not in foreground state and removed from recent items as well, my app stops working without any exception. but works fine when app is in foreground state or main activity is…
0
votes
0 answers

How to hide phone call screen during phone call in Flutter?

I'm making a phone call app like Whatsapp or Messenger in Flutter. Does anybody know how to implement Hide phone screen to the top and show "tap to return to call" on iOS? float icon on other apps on Android? I have found system_alert_window…
Watanabe.N
  • 1,549
  • 1
  • 14
  • 37