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

WindowManager focus save my life please

I want move a focus form a view of the WindowManager to the other views to quit the application. But I don't want to use FLAG_NOT_FOCUSABLE. Is there any other way to solve this? for example, public class WindowManagerTest extends Activity { …
Byeonggon Lee
  • 196
  • 10
0
votes
1 answer

Window Manager removeView(View view)

I am getting exception when i am going to removeView(View view) in the Window Manager. wm = (WindowManager) getSystemService(WINDOW_SERVICE); AntView mView=new AntView(getApplicationContext()); wm.removeView(mView1); When i try the above code it…
Sumit Kandoi
  • 427
  • 4
  • 12
0
votes
1 answer

How to know any other inbuilt app opened to hide layout from window manager in android?

I am attaching one layout to window manager from my android widget(which floats on all the screens). Now I want to hide that layout from window manager if any app like (browser, settings etc) opened. How to get to know that other app(like browser)…
Raghav
  • 93
  • 1
  • 7
0
votes
1 answer

Application's theme - Resizing activities of my application

My requirement is as follows: I have two modes of my application in first mode it will open normally but in second mode I have to re size all the screens to a fixed dimension. I am able to do so by writing code in each activity before calling…
skygeek
  • 1,548
  • 11
  • 24
0
votes
1 answer

BadTokenException Unable to add Window Spinner in PopUpWindow

I know there are a lot of similar questions here, but I'm not able to transfer the answers to my problem (or I didn't find THE answer I need...) In my menu on actionBar (in onOptionsItemSelected) I open a popupWindow for user settings. Checkbox and…
lis
  • 670
  • 1
  • 13
  • 32
0
votes
1 answer

Unlock screen programatically when app is running

I am developing an app, where i want the screen to be unlocked as long as my app is running. This is what i have tried, @Override protected void onResume() { Log.e("inside","main onre"); //for avoiding screen locking Window wind; …
Dave
  • 297
  • 3
  • 4
  • 15
0
votes
1 answer

android.view.WindowManager$BadTokenException related to Dialog and Context

I get this error android.view.WindowManager$BadTokenException in my crash reports. On some devices it only reports the exception but doesn't crash the app, other devices experience a crash. It is related to how the app is displaying dialogs. Other…
CQM
  • 42,592
  • 75
  • 224
  • 366
0
votes
1 answer

WindowManager.LayoutParams alpha issue

In my app, I have a service in which I create a view that I display by using WindowManger : mFilter = new View(this); mFilter.setBackgroundColor(getResources().getColor(android.R.color.black)); mParams = new WindowManager.LayoutParams( …
0
votes
2 answers

Prevent login screen on screen rotation android

I have an application in which a login screen shows up whenever an activity goes to onPause state. Generally, when screen orientation changes, the activity goes to onPause state, so I somehow prevented login screen when device is rotated. See the…
Srujan Simha
  • 3,637
  • 8
  • 42
  • 59
0
votes
1 answer

How to make View in WindowManager intercept all the touches?

I have a little (100*100) View, that I added to WindowManager, and I want it to intercept all the touch events, including that are outside of this view. By default, touch outside this view is handled by view "behind" this view.
artem
  • 16,382
  • 34
  • 113
  • 189
0
votes
1 answer

Android Screen Not Turning Off

I am using this code to fire off when a text message is being received. Everything works but when I click "Reply" or "Close" from the AlertDialog the screen never times out and just says on forever. I there something I need to do to allow a certain…
Tim Kipp
  • 200
  • 1
  • 16
0
votes
4 answers

Unable to full screen activity when i use onAttachedToWindow

I am trying to override home key and full screen the acitiy using below code. locking of home key is working fine but it unable to hide notification bar (unable to full screen the activity). public class ScreenLockDemo extends Activity…
0
votes
1 answer

no window animations accross app - android

I am creating an app that i want to NEVER use Window Animations.. I have tried using intent.setFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION); in methods that call new intents.. and i have also tried putting it in my intent filters of my manifest…
erik
  • 4,946
  • 13
  • 70
  • 120
-1
votes
1 answer

Touch on view behind fullscreen overlay

How i can perform AccessibilityNodeInfo.ACTION_CLICK or dispatchGesture to a view that is behind fullscreen overlay touchable? this is possible with AccessibilityService? the goal is use the overlay to prevent user touch on screen, but without…
-1
votes
1 answer

How to make touch go through empty layout-area in overlay?

I'm making sort of a side panel on Android that can be pulled out with a handle. My problem is that the area on the top and bottom of the handle (see area marked in picture) is blocked from touch, because the Layout that surrounds the panel and…
1 2 3
37
38