427 questions
0
votes
0
answers
56
views
InputMethodService onUpdateEditorToolType() Not Called on Android 15 (Pixel Device)
I'm developing a custom keyboard using InputMethodService. In my implementation, I override the onUpdateEditorToolType(toolType: Int) method to detect when the user taps into an input field.
On ...
0
votes
0
answers
52
views
InputConnection Support on Android 9+
I feel a little lost. I've created a subclass of TextureView which should support text input via keyboard. I've tested my code on physical device with Android 12 and Emulator and it works fine. But, ...
1
vote
0
answers
56
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
2
answers
434
views
Using custom input method in compose 1.7.0 and above
I was using LocalTextInputService and TextInputService to show my own custom input TextField in app. But they are deprecated in compose 1.7.0 and as result CoreTextField is stopped receiving ...
0
votes
1
answer
223
views
Android app custom input method is disabled and deselected on app launch from Android Studio
Context:
I am developing an app that implements a custom input method (a custom keyboard). It builds fine, and I can enable and switch over to the keyboard manually, but every time I launch the app ...
0
votes
1
answer
300
views
Overriding AOSP keyboard
Error:
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.inputmethod.latin.CarIME" on path: DexPathList[[zip file "/data/app/~~6CnZ_EwlgHaoEjQXjHx4lA==/com....
1
vote
0
answers
421
views
How to create input connection from Jetpack Compose Text Field?
I have my own custom keyboard created with jetpack compose, in my custom keyboard there's a feature that shows a textfield and we can type that textfield with the keyboard too, so I have to switch ...
0
votes
2
answers
359
views
Suggestion text is not displaying in android keyboard
When I use inputType as "textUri", Suggestion text input is not displaying.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://...
0
votes
1
answer
202
views
InputMethodService onCreateInputView not called
I have a simple InputMethodService implementation:
class MyKeyboardView : InputMethodService() {
override fun onCreate() {
super.onCreate()
Timber.d("onCreate")
}
...
1
vote
0
answers
753
views
Android. How to implement a custom keyboard?
I'm going to develop a custom keyboard, but I don't understand the sequence of steps that I need to perform in order for everything to work properly.
My requirements: the keyboard should automatically ...
0
votes
1
answer
68
views
How do I create keypreview from InputMethodService using PopupWindow in android?
I am trying to create custom keyboard for android system with Buttons and it is working fine. But now I want to add key preview. I am new in android, plese help me if it is possible showing ...
2
votes
0
answers
77
views
android custom IME getSelectedText blocks main thread
I have a soft keyboard app. I am trying to getSelectedText() of the EditText in order to handle occasions when user has selected some text. I need to do this because my app does not access the app ...
2
votes
2
answers
2k
views
Can a Compose LazyList be scrolled to adjust for keyboard?
I have been wrestling with IME padding/adjustment for my app. I have written a little toy app to try and focus on just the problem. The app presents a scrollable list of cards with info on them, the ...
0
votes
1
answer
769
views
Is this statement "Although Android gives focus to the first text field in your layout when the activity starts" still valid?
I found the subject statement in Handle input method visibility section
I would like to try to open my keyboard on activity start. However, my only EditText is not focused on activity start. My layout ...
1
vote
1
answer
186
views
How to simulate typing with char-by-char delay using InputConnection?
I need to simulate typing text with char-by-char delays using soft input keyboard on a WebView. I can't use WebView#dispatchKeyEvent because it's not suitable for typing Unicode text and does not ...