561 questions
6 votes
4 answers
2k views
Start external activity while phone is locked
I want to be able to start an Activity that is not part of my app while the device is password locked. How could I do this, if it's even possible? Note: I am well aware of putting getWindow()....
0 votes
0 answers
77 views
View in WindowManager Flickers on Animated Height Change with `WRAP_CONTENT`
I am trying to create a system overlay using WindowManager. This overlay contains a ComposeView which, in turn, hosts a Composable that animates its height. My WindowManager.LayoutParams for the view'...
0 votes
0 answers
64 views
ViewCompat.setOnApplyWindowInsetsListener not working in andorid < API 30 devices
I wanted to observe window inset for navigation bar and ime. used below snippet. in android API 30, listener is triggered when keyboard is opened or closed. the same code not working in API level 29. ...
0 votes
0 answers
315 views
Can I use react-native with window manager?
I know react-native can be used with fragment manager as in https://reactnative.dev/docs/integration-with-android-fragment How do I use the component in window manager though? Actually my main aim is ...
0 votes
0 answers
77 views
How to detect if another app is floating above mine (e.g., overlay/chathead) on Android 11+?
I'm trying to detect if another app (like a Messenger chat head or similar overlay) is currently floating above my app on Android 11 or higher. I’ve tried the following approaches, but none reliably ...
0 votes
0 answers
58 views
The AccessibilityService.onServiceConnected method is not executed after I enable the accessibility service
When I turn on the Accessibility Service, what I expected is the method “SVR.onAccessibilityConnected” would immediately invoke and then the app would play music loudly and show a window cover the ...
3 votes
2 answers
2k views
Android - Overlay view on top of Settings app
I've seen a couple of apps that are able to add overlay views from an accessibility service that are visible when the Settings app is on the foreground on also on the lock screen (!!). I have ...
0 votes
1 answer
193 views
Copy-Paste Context Menu Not Displaying on Long Press for Entry Added to Window at Runtime on Android in .NET MAUI
When long-pressing an Entry on Android, the copy/paste context menu should appear by default. It works when the Entry is placed directly on the page. However, if the Entry is added to the window on a ...
7 votes
2 answers
2k views
Android Window Manager block system back key
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 ...
20 votes
4 answers
26k views
Alternative to "FLAG_BLUR_BEHIND" in Android?
I can see that when I use the same flag as shown on the API-demos for blurring the background, I get a warning that it's deprecated: "The field WindowManager.LayoutParams.FLAG_BLUR_BEHIND is ...
1 vote
5 answers
5k views
android.view.WindowManager$BadTokenException error while creating dialog box
I am trying to create a Dialog Box from an Non activity Class. This is my Code public static void ShowDialogBox(final Context con, final Listener list) { AlertDialog.Builder dlgAlert = new ...
-1 votes
2 answers
884 views
Execution failed for task ':flutter_windowmanager:verifyReleaseResources'
in my flutter app, i run it without any problem, but when building APK i get the following problem FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':...
25 votes
8 answers
25k views
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 ...
0 votes
0 answers
25 views
dialog/transparent activity trans touch event to other window?
I want to create a dialog that contains a layout inside. This layout should be scrollable up and down. When the dialog is scrolled up to only show a drag handle, I want the dialog to pass all click ...
0 votes
3 answers
4k views
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. ...