Questions tagged [android-windowmanager]

The Android WindowManager is a system service, which is responsible for managing the z-ordered list of windows, which windows are visible, and how they are laid out on screen.

The Android WindowManager is a system service, which is responsible for managing the z-ordered list of windows, which windows are visible, and how they are laid out on screen.

Check the official WindowManager documentation for more details on the contract interface.

565 questions
0
votes
1 answer

SYSTEM_ALERT_WINDOW Chathead with android M - app crashs

I'm using this library. and I know it can run on android M, but for some reason it crashes everytime with my project. I tried researching and adding permission SYSTEM_ALERT_WINDOW (even tho it's not required) and i'm stuck. Anyone know why it…
Shaul
  • 211
  • 1
  • 4
  • 18
0
votes
0 answers

Android draw view on incoming call

I am trying to show a view over incoming phone call , Like true caller. Please let me know how i can implement that. I am trying to use this code: But it is showing me some error WindowManager wm = (WindowManager)…
Amit Sharma
  • 926
  • 2
  • 10
  • 35
0
votes
1 answer

Disable navigation keys in Android

How can I disable navigation keys via Service in Android? I had been thinking about adding FLAG_FULLSCREEN or FLAG_LAYOUT_IN_SCREEN to WindowManager in order to make a service go fullscreen, but it didn't work. Next thing I did trying to disable…
jelic98
  • 723
  • 1
  • 12
  • 28
0
votes
1 answer

Start ProjectionMedia from a service

I have a floating button being drawing using android.permission.SYSTEM_ALERT_WINDOW above all the windows , what am trying to accomplish is once I press on it , I start ProjectionMedia API here is what am doing : //passing to it the Main activity …
0
votes
1 answer

No view found for id 0x7f0f0085 (lockscreen_viewpager) for fragment LockscreenDefaultFragment{b73c8bb #0 id=0x7f0f0085}

Whenever i tried to add in the activity( include viewpager) into windowManager, it will crash and the above error appeared. I tried the solution like setId for viewpager and create custom viewpager to lazy call the setAdapter but unfortunately it…
0
votes
1 answer

Android : Place non-clickable view above all application windows but below notification bar

Sorry for the long title. I would basically like to add a SurfaceView as a window that appears above all windows but not above the notification bar (even when dragged down). The code I currently have is: WindowManager.LayoutParams params = new…
Sean
  • 445
  • 1
  • 5
  • 10
0
votes
1 answer

Can't get a reference to my Activity inside private inner class in a Webview App

I am creating an android app for a client using a WebView. There are some links on the client's website that play media. In order to conserve battery, I am trying to call the "FLAG_KEEP_SCREEN_ON" when a user clicks on this media link within the…
i_o
  • 777
  • 9
  • 25
0
votes
0 answers

Android WindowManager position like Facebook Reactions Behavior

this is a sequence of this Question I'm trying to replicate the implementation of Facebook Reactions but Vertically, someone answered that was made with WindowManager. I've created a layout with buttons, set setOnTouchListener to take…
schwertfisch
  • 4,549
  • 1
  • 19
  • 32
0
votes
1 answer

Cordova Show content on the lock screen android

I want to show some interactive content on the lock screen. I already have a listener which gets fired when power button is pressed to turn the screen on, I just don't know how to display a dismissable webview on the lock screen. Any ideas?
0
votes
3 answers

Android - How to make an AlertDialog narrower than standard?

I currently have the following code to build a wait dialog with a ProgressBar: LayoutInflater factory = LayoutInflater.from(TherapistActivity.this); View view = factory.inflate(R.layout.waitdialog, null); dialog = new…
0
votes
2 answers

WindowManager can not always draw on top

In my app I use a BroadcastReceiver to catch incoming calls. So when someone calls and in case that I have the phone number stored in my application's DB, I display a window with the name of the caller. The problem is that in some devices this…
0
votes
0 answers

Removing others WindowManager TYPE_SYSTEM_OVERLAY

I was wondering if it was possible to remove a floating View using TYPE_SYSTEM_OVERLAY used by another App (I'm thinking about Facebook Messenger among others). I firstly tried to display my own overlay with transluscent background, thinking that…
JBA
  • 2,889
  • 1
  • 21
  • 38
0
votes
2 answers

Is possible remove an overlay with WindowManager when press back or home button in android?

I'm trying to find some answer to my question in the site but I don't found anything, and I'm not sure if is possible remove or hide the overlay with windowManager when press back or home button. This is that I have now. I put an overlay using…
0
votes
2 answers

Android listen to Lock screen displayed

I want to do a method when lock screen displayed (not when unlocked or screen on, just when lock screen displayed). i try with broadcast and services but they don't work after killing app. Also In eclips LogCat i see a log like /WindowManager(473):…
mhk
  • 112
  • 1
  • 11
0
votes
1 answer

could not get my window manager screen above locked screen in android (without unlocking the device))

here is the service that i have called to display view above locked screen.i dont want to unlock lock screen i want something that whatsapp and skype use for their calling screen.such that screen is not unlocked. public class Display extends Service…
atul
  • 56
  • 9