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

How to create an activity and attach it to an existing WindowManager

I am trying to create a WindowManager with some LayoutParams,create an activity and attach the latter to it. I know I could create the activity first and then get the Window in which it was created and then apply the parameters like…
0
votes
1 answer

Get notification bar size without an activity

I have a Service that instantiate a ImageView, using WindowManager class, on the screen, this service have no window or visible objects. When I try to set the position of this ImageView using the WindowManager, it set the Y axis position with an…
0
votes
1 answer

invisible view in WindowManager with type RGBA_8888 ImageView

I often use the attribute, but this time it is not work.If a remove the attribute,I can see the view and everything is ok. Do someone know what am i missed? myCode: private boolean loadingDirect=false; private void addLoading(){ …
Jhon Smith
  • 181
  • 2
  • 12
0
votes
1 answer

WindowManager.addView prevents other apps from setting screen brightness

I have a simple Activity which adds a view to the screen. Codes are: public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); …
shhp
  • 3,653
  • 2
  • 18
  • 23
0
votes
0 answers

Android 5+ screen locks can't add view with WindowManager

I've got an Identified call app which worked very good till android 5+. Basically I've got a BroadcastReceiver which "do his thing" when phone rings after identifying the call I add a small view. on a new galaxy edge s6 it doesn't work when the…
0
votes
0 answers

Android app installs and runs from Eclipse but will not run when installed from .apk file on phone

I have an app I've been developing for Android. The application installs and runs fine from Eclipse but when I export the .apk, put it on the phone and install it then the app will not run and closes. I get this message in logcat: 05-01…
Paul Alexander
  • 2,686
  • 4
  • 33
  • 69
0
votes
0 answers

Using android pull to refresh library draws layout on top of navigation drawer

I'm using a pull to refresh library, which I know is deprecated, but unfortunately the client I'm working for is reluctant to change it so I'm unable to do so. I'm using this library from @ChrisBanes:…
0
votes
1 answer

Android widgets in keyguard, handle onClick events

I hope this question wasn´t asked before, but I couldn´t find any solution for my problem. I have a widget which is also used for keyguard. I want to add an onClick handler for my widget. There is no problem, when the widget is on home-screen, the…
Erich
  • 1,838
  • 16
  • 20
0
votes
1 answer

Overlay ActionBar with WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY

My question is about android 4.0+ I have a activity with pernament fullscreen by 2 steps: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); WindowManager wm = (WindowManager)…
0
votes
1 answer

Button does not react to first tap in fullscreen mode

On the first start of my app I start an Intro-Activity in fullscreen with hidden navigation bar (black bar at the bottom) with: View decorView = getWindow().getDecorView(); int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION |…
fweigl
  • 21,278
  • 20
  • 114
  • 205
0
votes
3 answers

ImageView inside WindowManager not showing in Android 4.1 and 4.4 in home screen

I have ImageView with static image. When I add this ImageView to WindowManager using TYPE_PHONE, it shows up fine on all Android versions (4.1, 4.4, 5.0) However, when I press home button and go out of the application, in 4.1 and 4.4 the ImageView…
0
votes
2 answers

WindowManager.addView ontop(overlay) of soft key OR nav bar

I saw an app that overlays whole screen including nav bar (or soft-key that has back, home, etc.) today. it's CF.Lumen(requires android 4.4+) by chainfire. I just remembered this is NOT POSSIBLE on general approach and many SO answers told me. So I…
0
votes
2 answers

screen turn off after using "WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON"

I'm having problem allow the device to dim and turn off after using WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON. I've built a recording camera and while recording I don't want the screen to turn off so I used the…
Gili Yaniv
  • 3,073
  • 2
  • 19
  • 34
0
votes
1 answer

Window manager not showing window on the top

In an android application I have to show an internal notification that comes over the top of every screen in my app . I have used WindowManager. But it doesn't seem to work as expected. Sometimes I see the first notification but the second is not…
user2781627
  • 455
  • 5
  • 17
0
votes
1 answer

In Floating window not able to get listview clicks events for background apps

I have created Floating button am able to keep on required position as shown in image as well access other apps as i launched settings app. but it is blocking back key and list view item click for background apps as shown in image if we consider…
SHA
  • 317
  • 4
  • 15