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

How to place views on top of other views without using WindowManger?

Context: My android library requires to dynamically place views on on top of other target views. Currently I am using WindowManager for this purpose. I have the viewId of the target views and get the location coordinates of the views. Now I simply…
Girish Garg
  • 58
  • 1
  • 9
0
votes
1 answer

block popups from iframe/embed

I have a lot of iframes and they are from spotify and I keep getting pop ups that ask for the content of the device which will cause one embed/iframe to pause when another one stops. How can I get all the iframes to not allow popups? This is just a…
0
votes
2 answers

How to show alert dialog when app is closed

I am really in trouble with that situation. When a call comes, I can hold the call and number that call me. After this incoming calls, I want to show an "alert dialog "although my application is closed. I am using the Android emulator with API…
0
votes
0 answers

How to use system_alert_window popup in java

I need to have my app draw over other apps, and I tried getting SYSTEM_ALERT_WINDOW permission shown below. public class excessiveusageactivity extends AppCompatActivity { static final int REQUEST_OVERLAY_PERMISSION = 1; //request code …
0
votes
0 answers

How to handle Safari System Alert for Java UI Test

I have a UI tests run by Java code. One of the test casess happening for Apple Safari Browser. Is there any way to handle one time system alert from code side?
dicle
  • 1,122
  • 1
  • 12
  • 40
0
votes
1 answer

Android Espresso java.lang.SecurityException: Permission android.permission.SYSTEM_ALERT_WINDOW is not a changeable permission type

I have an Espresso script that needs the SYSTEM_ALERT_WINDOW permission. I use the following code to grant the permission for all test scripts: @Rule public GrantPermissionRule permissionRule =…
0
votes
0 answers

The SYSTEM_ALERT_WINDOW permission is not provided automatically after publishing to the Play Store

According to this post, after publishing in Play Store for Android 6 device the SYSTEM_ALERT_WINDOW permission has to be given automatically. Here it's shown that my App has permission to draw over other apps. But after downloading from Play Store…
0
votes
1 answer

Overlay layout (messenger-like chat bubbles) exit layout on ACTION_MOVE

recently I developed application following this tutorial: https://medium.com/exploring-code/create-chat-heads-like-facebook-messenger-32f7f1a62064 What it doesn't cover is how do you implement "exit layout" being drew at the bottom - middle. It…
Kostek
  • 283
  • 3
  • 10
0
votes
1 answer

show popup window on lock screen

I have implemented a caller ID feature where when the screen is locked it should open the lock and show the popup with the name of the person calling. this is the code i've added in the onCreate() of the PopupActivity. …
0
votes
2 answers

Read other application WindowManager(System Alert) Alert in android?

I am building an android application where I want to read WindowManager(System Alert) Alert Text that is trigger from some other application. Suppose there is some application like true caller and after the end of each call this application display…
Hitesh Matnani
  • 309
  • 1
  • 5
  • 20
0
votes
1 answer

Android: is it a good idea to display views with a windowmanager in a service?

I'm making a kind of minigame thats played in an android service, so the background is whatever you were doing on your phone at the time, the game starts when you click on the foreground notification. Everything is displayed with a windowmanager…
0
votes
2 answers

Android Wear System Alert Window Permission

How to ask for system alert window permission on Android Wear? I am able to achieve the SYSTEM ALERT WINDOW for mobile but on the wearable device same code is not working for me. If any example of SYSTEM ALERT WINDOW for wearable would help me a…
0
votes
1 answer

SYSTEM_ALERT_WINDOW option greyed out (not changeable)

I'm working on an App that is uses the SYSTEM_ALERT_WINDOW permission. I've added the permission to the Manifest. In my activity, I've added the following code to ask permission at runtime. @Override protected void onCreate(Bundle…
Arjun Issar
  • 672
  • 4
  • 13
  • 32
0
votes
1 answer

Show system popup before default caller screen

have several problems with SYSTEM_ALERT_WINDOW After device go sleep (Screen lock or screen switch off) don't see my System alert window Sometimes can't click button closeWindow() but don't understand why. Maybe some one can explain? Android 6 no…
Staff
  • 853
  • 1
  • 7
  • 10
0
votes
0 answers

Android M SYSTEM_ALERT_WINDOW permission

As stated here: https://code.google.com/p/android-developer-preview/issues/detail?id=2971 it will not be possible to ask for permission SYSTEM_ALERT_WINDOW. It refers to a system settings, allowing or disallowing these kind of windows. Does anyone…