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

How to show keyboard with Jetpack Compose?

How can I slide in the keyboard? I tried: val keyboardController: SoftwareKeyboardController? = LocalSoftwareKeyboardController.current keyboardController?.show() But it does not work. What am I missing? Maybe some Manifest flags?
16
votes
3 answers

Oreo (API 26) - drawOverlay + draw over status bar

In android oreo, I can't use WindowManager.LayoutParams.TYPE_SYSTEM_ERROR anymore and must use WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY instead. The drawback is, that this mode does not draw over the statusbar. Is there anyway to achieve…
prom85
  • 16,896
  • 17
  • 122
  • 242
16
votes
2 answers

How many WindowInsets are there?

I do not understand about WindowInsets rects, because docs says that: The system window inset represents the area of a full-screen window that is partially or fully obscured by the status bar, navigation bar, IME or other system windows. So,…
GPack
  • 2,494
  • 4
  • 19
  • 50
16
votes
7 answers

Fullscreen in WindowManager

This is my code: params = new WindowManager.LayoutParams( WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY, …
15
votes
3 answers

android Exit from full screen mode

I am working in Android. I need to show my activity in Full screen mode, and i did this using following code. getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); Now…
Pushpendra Kuntal
  • 6,118
  • 20
  • 69
  • 119
15
votes
4 answers

Why my EditText copy/paste menu is under the EditText? How change the z-order of popup window?

NOTE If someone know how to order (z-order) Windows added via windowmanager, i will also accept the answer because it's will answer all the question. Actually i only find to do windowManager.removeView(MyView) following immediatly by…
14
votes
2 answers

Android: Overlay TextView on LockScreen

Im trying to overlay a TextView on top of the LockScreen (Similar to how Android Overlays the time). Note: I dont want to by-pass the lockscreen, but just draw on top of it (without interfering with any of the touch events). I've tried using the…
Zen
  • 2,698
  • 4
  • 28
  • 41
14
votes
1 answer

What is a "Panel" in an Android Window?

The reference documentation for Android Window and related pages (e.g., WindowManager.LayoutParams and Window.Callback) refers to "Panels" in a number of places. For example, the Window.Callback page has the following. Window.Callback API from a…
Barry Holroyd
  • 1,005
  • 1
  • 11
  • 20
14
votes
3 answers

WindowManager$BadTokenException unable to add window

I am developing app for background videorecording ,thats why i used WindowManager,but it did not worked for me.gives following errors: 08-23 15:38:21.021: E/AndroidRuntime(4200): java.lang.RuntimeException: Unable to create service…
Vasu
  • 886
  • 2
  • 11
  • 28
14
votes
4 answers

PopupWindow z ordering

I play with menus using PopupWindow, which overlap EditText. It works fine, except that my PopupWindow is overlapped by some items from EditText IME system (selection marks, Paste button). My question is: how do I force z-ordering of my PopupWindow…
Pointer Null
  • 39,597
  • 13
  • 90
  • 111
13
votes
2 answers

Display DialogFragment content below status bar

Im trying to display an DialogFragment with match_parent both for height and width but it happens that on top the DialogFragment is being displayed below StatusBar. The DialogFragment is applying some default value for padding on bottom, right,…
12
votes
2 answers

TYPE_SYSTEM_OVERLAY in ICS

In Honeycomb I was able to create a system overlay with TYPE_SYSTEM_OVERLAY and receive touches with FLAG_WATCH_OUTSIDE_TOUCH. Now ICS has changed something. I can still create the system overlay, but i can't get touches. Now, i am able to create…
12
votes
2 answers

Android ActivityManager vs WindowManager

Can someone please explain below in detail, 1- What is the use of ActivityManager & WindowManager? 2- What is the difference between ActivityManager & WindowManager?
Yaqub Ahmad
  • 27,569
  • 23
  • 102
  • 149
12
votes
3 answers

Display a view using windowmanager on lock screen

I have a float icon that stays on top of all activities, but when the device get locked it disappear until the device get unlocked. Another meaning, I want to display a view (FloatIcon) on lock screen using windowmanager from service. This is my…
user2412629
12
votes
5 answers

How to add a floating view to Android Window manager and listen to System/Hardware back button events

I have a service which displays a floating view on the window manager (using WINDOW_TYPE_ALERT permission). I'm able to display it and perform actions. But, I have two specific questions: Regarding the implementation of the floating view How to…
Handroid
  • 399
  • 1
  • 2
  • 13
1
2
3
37 38