android-windowmanager Questions

1

I'm working on floating window on android and i'm having a problem. So I have my activity that calls my floating class that creates a the view and adds it to the windowmanager with a timer that is ...

7

I was able to create a floating activity after following this tutorial http://cases.azoft.com/android-tutorial-floating-activity/ However, to do so, I had to add this line in styles.xml : <ite...

7

Solved

How can I slide in the keyboard? I tried: val keyboardController: SoftwareKeyboardController? = LocalSoftwareKeyboardController.current keyboardController?.show() But it does not work. What am I ...

0

I want to add an overlay to the application rootView or BaseActivity without permission. And it should be displayed on top of BottomSheetDialog or on top of Copy Cut Paste ContextMenu in EditText...
Ankylose asked 22/6, 2023 at 8:34

5

Solved

In my service I add a view to WindowManager with addView(). When I'm ready to hide the view, I call removeView() using the View reference. This works great -- most of the time. I have occasional F...
Aerostatics asked 29/6, 2011 at 1:58

7

Solved

This is my code: params = new WindowManager.LayoutParams( WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY,...
Ferryman asked 18/1, 2013 at 11:27

6

Solved

I'm targetting my application to Android O. In my application I have a job service that shows a window over all other applications, so when it triggered it needs to show this window even when the s...
Cristalcristate asked 16/1, 2018 at 8:53

2

In my application I have a ListView with a footer that contains a custom view with an EditText inside. At the top sits an action bar. The activity currently uses SOFT_INPUT_ADJUST_RESIZE (adjustRes...

5

Solved

I was using getRealMetrics() method and came to know that it is deprecated val display = this.display display?.getRealMetrics(outMetrics) anybody know what is the alternative.
Dobla asked 18/11, 2021 at 7:5

2

Solved

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 ...

1

I have successfully inflated my layout in a service, however it's not displaying the ImageView inside the Inflated Layout and I have no idea why. I set an onClickListener on the imageview and it wo...

12

I get the following Android exception when I try to open a dialog. Can someone please help me understand what is going on and how can I fix this problem? android.view.WindowManager$BadTokenExcepti...
Hawsehole asked 28/10, 2011 at 18:17

1

I have drawn an overlay using WindowManager. it's width and height are WindowManager.LayoutParams.MATCH_PARENT with transparent background. My view must be match parent and handle circle touch ...
Aegaeon asked 20/8, 2018 at 6:5

1

I have an floating view like Facebook chat buble, but unlike it, my overlay has a EditText and need to be focusable. Here is my floating view code //Inflate the floating view layout we created ...
Ridgeling asked 27/9, 2017 at 21:33

4

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 que...
Grodin asked 15/6, 2012 at 20:56

16

Solved

I'm working on an app where I need to display a window with some info ON the Lock Screen (KeyGuard) without unlocking the phone. I figured I could probably do it with WindowManager.LayoutParams.TYP...
Heathenish asked 26/8, 2015 at 10:41

1

I have an app that uses two processes to show UI components - one for the main app, which uses regular activities, and one where the UI consists of overlays (that live in a Service) that are added ...

1

public class MainActivity extends AppCompatActivity { ArrayList<String> list = new ArrayList<>(); ArrayAdapter<String> adapter; ArrayList<String> data1 = new ArrayList...

2

Solved

I have a BroadcastReceiver that starts an Activity. If the Activity is started while the screen is on, it displays and everything is fine. However, on ICS and JB devices (I haven't tested GB or HC ...
Appliance asked 19/10, 2012 at 17:49

6

Solved

I trying to create a view that is above other applications: WindowManager.LayoutParams paramsDirectorView = new WindowManager.LayoutParams( WindowManager.LayoutParams.WRAP_CONTENT, WindowManager...
Impresa asked 14/9, 2017 at 0:55

1

Solved

I am creating an Android App in which I am showing a floating view on top of all apps by using a service and Window Manager. I am trying to add WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_M...

2

Solved

I am trying to disable multi window feature of android. I have read the android documentation and know that resizeableActivity would only work for android N (API level 24) but I want to disable i...

1

Trying to understand what cause the window leak in my Activity. The activity extends AppCompatActivity. It has a single view with a RecyclerView and a ProgressBar invisible while rotating. @Overri...

2

Solved

I know what setFlags does is replacing the old flags with the new ones. And addFlags is appending more flag. I'm just confused why are the arguments in setFlags method that I've seen usually the sa...
Poundage asked 17/12, 2017 at 11:28

1

I'm adding a View to the WindowManager and overwrite it's onConfigurationChanged function like following: View Code // onConfigurationChanged should be called after config change has finished ove...
Lacewing asked 22/10, 2018 at 9:40

© 2022 - 2024 — McMap. All rights reserved.