The InputMethod interface represents an input method which can generate key events and text, such as email addresses, other language characters, etc., while handling various input events, and send the text back to the application that requests text input
Questions tagged [android-input-method]
427 questions
0
votes
1 answer
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 is my custom one works but if current selected…

nicolauscg
- 115
- 1
- 5
0
votes
1 answer
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 EXCEPTION: main
Process: com.nisarg.nboard,…

neonpokharkar
- 96
- 11
0
votes
0 answers
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 do so. Is it?
@Override
public void…

neonpokharkar
- 96
- 11
0
votes
0 answers
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 this:
Caused by:…

Dinesh
- 23
- 1
- 6
0
votes
1 answer
How to show numeric keybord when EditText is set to floating numbers?
I want to my phone to show numeric keyboard when I focus on an EditText which is set to InputType.TYPE_NUMBER_FLAG_DECIMAL. But it shows alphanumeric (normal keyboard like whatsapp's) keyboard, How can I achieve this?
I use this to open…

Muhammed Aydogan
- 570
- 1
- 4
- 22
0
votes
0 answers
ClassNotFoundException when specifying custom IME as EditText's android:inputMethod value
My app includes a custom IME, MyCustomIME. It works fine when the user manually selects it as the device's input method.
However, when I try to specify MyCustomIME as the input method for an EditText within my EnterPinActivity's layout…

ban-geoengineering
- 18,324
- 27
- 171
- 253
0
votes
0 answers
How to use android:inputType on an EditText to specify my custom IME?
My app includes a custom IME (that extends InputMethodService) and I would now like to specify this as the IME for all the EditTexts within my app.
Specifying an android:inputMethod for each EditText seems to be one old way of doing it, but…

ban-geoengineering
- 18,324
- 27
- 171
- 253
0
votes
1 answer
showInputMethodPicker not working on devices above Marshmallow?
In the documentation, I saw that
showInputMethodPicker
Added in API level 3
public void showInputMethodPicker ()
Show IME picker popup window.
Requires the PackageManager#FEATURE_INPUT_METHODS feature which can be detected using…

Manoj Perumarath
- 9,337
- 8
- 56
- 77
0
votes
0 answers
How to toggle between two keyboards (Google keyboard and Custom IME SoftKeyboard) by clicking on a button?
I have created a EditText,Custom IME SoftKeyboard and a button. I want that when my app opens and I click on EditText, it opens with my Custom IME Softkeyboard and when I click on the button, it switches to Default Keyboard. When I again click on…

Anant Jain
- 29
- 8
0
votes
1 answer
How to get number of rows of native Android soft keyboard?
I'm building a custom keyboard using input method service in Android and I want its height to be as much as native's keyboard as possible but without numbers row and any other rows (such as prediction row or something).
I set the height of my…

Ana
- 73
- 7
0
votes
3 answers
windowSoftInputMode Not Working on Webview Element
I tried to set windowSoftInputMode to adjustResize in manifest file so that when I click on an input inside a webview, the keyboard does not cover the input field.
android:windowSoftInputMode="adjustResize"
Seems like it is not working on webview…

user1658080
- 631
- 1
- 7
- 18
0
votes
1 answer
EditText with textPassword inputType, but without Softkeyboard
i wanted to create an EditText with an android:inputType="textPassword. However i also do not want to use the SoftKeyboard for input.
So i tried setting InputMethod to null, but this would also disable the textPassword features of replacing password…

icyerasor
- 4,973
- 1
- 43
- 52
0
votes
2 answers
Creating a Custom input type for android
my requirement is that, the user should only be able to type in digits 0 throu 9 , and that after every 4 characters, a "-" sign is automatically appended to the edittext.user should not be able to delete any part of the edittext except at end.…

rDroid
- 4,875
- 3
- 25
- 30
0
votes
2 answers
How to change key label of the custom android keyboard in java
I want to change the key label on my custom keyboard at run time, passing through java. I can't find any solution anywhere.
java file
public class MyKeyboardService extends InputMethodService implements KeyboardView.OnKeyboardActionListener {
…

pete_yoe
- 1
- 2
0
votes
1 answer
getting text length limit of current input field - Android Input Method
I am developing a soft keyboard. I want to notify user the maximum text length reached.
Is there any way to get maximum text length allowed by current input field in which user is typing ?
getCurrentInputEditorInfo() returns EditorInfo object which…

Nalin
- 135
- 7