455 questions
0 votes
0 answers
41 views
Android AccessibiltyService : How can I enabling perform action on a sealed instance [closed]
I am using AccessibilityService in AndroidStudio for an app which is going to access an another app. In a view there is not available actions of "ACTION_CLICK". Its sealed and I am getting ...
1 vote
0 answers
47 views
Missing first KeyEvent when using ComponentActivity.setContent()
I want to intercept all KeyEvents in Activity regardless of focus. Minimal working example: class MainActivity : ComponentActivity() { @SuppressLint("RestrictedApi") override fun ...
1 vote
0 answers
128 views
How to disable keyboard pan/adjusting on a ModalBottomSheet
I have a form with multiple Composable TextFields in a ModalBottomSheet. The problem is my ModalBottomSheet keeps moving to a partially collapsed state when it should simply stay expanded. I want to ...
1 vote
1 answer
189 views
Android Kotlin Jetpack Compose - Track down Keyboard's Down Arrow Button
This might be the duplicate question or may have been asked several times. I have tried to search the solution by other stack overflow answers but I don't seem to find the exact solution that works ...
0 votes
0 answers
48 views
How to show jumbled numberical keypad in android?
I want to show a numeric keyboard for my TextField but I want the numbers to be jumbled up every time. I have seen this in some apps but I don't think there is a native support for this (correct me if ...
0 votes
1 answer
90 views
Move FrameLayout up when keyboard is shown
I saw similar topics but solutions I saw there won't works for me. So I have main ConstraintLayout with some editText. On the bottom of that Constraint I have FrameLayout with 2 buttons. Problem is ...
-1 votes
1 answer
541 views
How to deactivate device hardware (physical) buttons such as Task & Home Buttons (Android 13)
In order to run our application on runtime on devices exclusively meant for it, I want to disable device hardware buttons such as Home, Task & Back buttons. My Android version is 13, device is ...
1 vote
0 answers
263 views
Android Google Save password prompt is flashing and disappearing
I have a login screen, where the user enters the email and password the following screen is an OTP screen. The issue is that when a user enters their email and password and moves to the OTP screen ...
0 votes
0 answers
46 views
Error toast being shown in samsung devices stating screen touches might be delayed
I am getting the following error on Samsung S22 (Android OS 12) when the keypad is opened in my app. Please let me know how to resolve this if anyone has been able to figure it out. I tried with other ...
1 vote
0 answers
100 views
Android keypad hides Bottom sheet dialog fragment views
I am having a bottomsheet dialog fragment in my activity. I want my whole layout to be top of the keyboard when it keyboard is opened. I tried various solutions. Now my layout goes up, but keyboard ...
0 votes
1 answer
57 views
In Android, Is there any way to listen Network Changes in the InputMethodService class?
I'm creating a custom keyboard in Android, whenever the keyboard popups, I want to show the popup when the network connection is interrupted, I have tried this in Activity-based classes but this is a ...
0 votes
1 answer
2k views
Jetpack Compose - how to check if keyboard is open or closed
I'm using Jetpack Compose and trying to find a way to detect if the keyboard is open. I've tried to use the below code, but I get an error stating Unresolved reference: ime. When I click on the ...
1 vote
0 answers
40 views
EditText input element hide in the android alert dialog when soft key pad visible
In my new app I want to give a pop to add password to login. It's having a EditText Input,Title and Message. Edit text gave as, final EditText input = new EditText(view.getContext()); Issue is when ...
1 vote
1 answer
328 views
Using onKeyListener with device volume buttons to call and dismiss an AlertDialog
I would like for the VOLUME_UP and VOLUME_DOWN buttons to open and close an AlertDialog window. Below is what I have so far, private void paused() { View v = this.getLayoutInflater().inflate(R....
1 vote
2 answers
378 views
How to retrigger focusRequester.requestFocus() when coming back to a composable?
I have a MyBasicTextField in a composable to request user input: @Composable fun MyBasicTextField() { val keyboardController = LocalSoftwareKeyboardController.current val focusRequester = ...