429 questions
0
votes
0
answers
46
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
29
views
Where is status bar overlay coming from on IME pupup?
I have an input box that when clicked on pops-up the soft keyboard and an overlay over the status bar renders at the same time. But when the input box loses focus, the keyboard hides but the overlay ...
1
vote
2
answers
365
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
261
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....
0
votes
2
answers
298
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://...
1
vote
0
answers
710
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 ...
2
votes
0
answers
59
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 ...
0
votes
1
answer
722
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 ...
0
votes
0
answers
316
views
Jetpack Compose not updating View when using InputMethodService
You can find a sample project to reproduce the issue on Github
Button click works, but showing/ hiding the "Text" inside Column is not working when using InputMethodService
@Composable
fun ...
1
vote
0
answers
286
views
How can I selectively disable android:windowSoftInputMode="adjustResize" from manifest file?
Initially I want to show a composable immediately on top of the Android default keyboard, what slides in if needed on my different screens. Similar like in this example, but I do not want to set ...
0
votes
1
answer
110
views
back pressing closes app even though keyboard is open
I have a searchView view in my activity. When i click on it, the keyboard opens (as it should) but when I press the back button I want it to close the keyboard (which is visible) but it closes the ...
4
votes
2
answers
1k
views
How to specify a keyboard language in Android Compose
I'm coding an app in Android Compose.
I have a TextField with text in known language, say German.
When a user taps the TextField, the keyboard pops up.
I want the keyboard to pop up preset with German ...
0
votes
1
answer
445
views
The sample of Android's MultiClientInputMethod cannot properly work
I follow Google's official instructions to use the example of MultiClientInputMethodManagerService(https://android.googlesource.com/platform/frameworks/base/+/master/services/core/java/com/android/...
2
votes
1
answer
554
views
How to identify an input field by an input method service?
I am implementing a custom keyboard and therefore use an input method service. In the onStartInput() method I am able to identify the app, the keyboard is used in, by the packageName of the EditorInfo ...
1
vote
1
answer
140
views
Android keyboard InputConnection setSelection doesn't work well with unicode?
When pasting a text in the editor with unicode in it, for example:
😂😂 Please give me an authentic answer buddy.
And doing:
getCurrentInputConnection().setSelection(31, 43);
The selected text is ...
-1
votes
1
answer
297
views
How to display input method picker list title and summary in textview android?
i am sing keyboard view to select. After selecting the keyboard, how to display the selected keyboard text in textview android?
i can display only language but how to display the Title and summary for ...
0
votes
1
answer
324
views
Use done button to close my custom keyboard
I am making a custom keyboard for android in android studio and i have almost implemented all the basic functionalities required for a basic keyboard but I am struggling to figure out how to close my ...
0
votes
1
answer
816
views
How do I get the Name of Keyboard sending key events?
val imm = context.getSystemService(Context.INPUT_METHOD_SERVICE) as? InputMethodManager
val enabledInputMethodList = imm.enabledInputMethodList
In the above snippet, I'm able to get the enabled ...
1
vote
1
answer
793
views
Android - How do I display input method picker automaticly whenever activity is shown?
TLDR version: I want to switch between input methods with the least amount of taps possible. InputMethodManager.showInputMethodPicker() does nothing when called in MainActivty onResume(), but works ...
0
votes
1
answer
1k
views
InputMethodManager.showInputMethodPicker not showing when custom keyboard in my app is not currently selected
I am implementing a custom keyboard with InputMethodService. Calling showInputMethodPicker from a service that is a chat head (a floating widget like in facebook messenger) when the selected keyboard ...
0
votes
1
answer
151
views
call removeView() on child's parent first custom Keyboard
I have created a custom keyboard, whenever it switches from potrait to lanscape it gives the following error and crashes:
2020-07-04 16:31:38.846 24634-24634/com.nisarg.nboard E/AndroidRuntime: FATAL ...
0
votes
0
answers
50
views
Is it safe to start thread execution in onDestroy of a Activity/IME?
I am creating a keyboard. I need to do some database intensive operation at onDestroy of my IME. SO I made a Runnable and am calling it in the onDestory as shown, but I'm not sure wether it is safe to ...
0
votes
0
answers
152
views
Material Components not working in service class (InputmethodService) - InflateException
i was trying to inflate a layout xml into the candidate view of InputmethodService onCreateCandidatesView(), the layout file contains ChipGroup material component. It throws an InflateException like ...
2
votes
1
answer
205
views
Cleaner way to maintain virtual keyboard on orientation change
I have the following EditText in my XML:
<EditText
android:id="@+id/searchField"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:hint="What do you want to ...
7
votes
1
answer
933
views
I need to create Android keyboard app, but some classes are depricated
I need to develope android keyboard app, but Android developers website tells that KeyboardView and Keybord classes are deprecated after Api 29, to create the UI for the keyboard.
This class was ...