Questions tagged [android-input-method]

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

427 questions
0
votes
1 answer

Can an InputMethodService or any backround service listen to other applications Input events like Keyboard in Android?

I want to know whether the android system can notify if a keyboard is enabled in one app to other apps.
Mohanakrrishna
  • 148
  • 3
  • 13
0
votes
1 answer

android edit-text input limit 2048 characters but I need to input 5000 characters

Android EditText input limit 2048 characters. Here EditText produce a input field. Where user can input 2048 characters…
0
votes
0 answers
0
votes
1 answer

How to get the Window of InputMethod on Android

In order to collect user's keystroke features on our App, I have to collect the touchevent(or just the click timestamp) on the input method view(soft keyboard). 1)As far as I know, the window of the soft keyboard is distinct from the window of the…
0
votes
1 answer

Force switching Input Method

I wonder if there is a way to force switching between actives InputMethod from an external app.
Federico
  • 31
  • 5
0
votes
1 answer

Android soft input behavior for KEYBOARD_12KEY, KEYBOARD_QWERTY, and KEYBOARD_NOKEYS

I was wondering if anybody here knows in what scenarios will Android show the user an on-screen soft keyboard, and how Android takes into account the different types of hardware keyboards available (KEYBOARD_12KEY, KEYBOARD_QWERTY, and…
0
votes
1 answer

Is InputMethodService.onUpdateSelection asynchronous?

I am making a custom IME. I am trying to track when the user manually changes the selection region of text (as opposed to the selection changing as a result of actions from the IME itself, like commitText). To do this, I am keeping track of where…
Luke Needham
  • 3,373
  • 1
  • 24
  • 41
0
votes
1 answer

How to modify the ExtractedEditText for a custom keyboard in Android

I want to change the font and text size of the text in a custom keyboard's extracted text view. How do I get a reference to the EditText? I just learned how to do this by examining the InputMethodService source code, so I am posting this as a Q&A.…
Suragch
  • 484,302
  • 314
  • 1,365
  • 1,393
0
votes
1 answer

Android - Modify entered text before it reaches EditText View

Problem Statement : We have a requirement to kind of hack the user input ( before it reaches EditText ) and trigger some functionality BEFORE the text reaches the EditText View How can this be done ?? Attempted solutions : a. Tried onKeyPreIme()…
Deep
  • 673
  • 1
  • 10
  • 23
0
votes
1 answer

Android InputMethodService Inconsistent State in Fullscreen Mode

I am developing a soft keyboard. I have a class MyIME that extends InputMethodService. I override onKey(int, int) to handle keypresses. My keyboard is able to insert and delete text the way I defined it just fine in portrait modes, I am just…
0
votes
6 answers

Continuous OTP input with EditText

Here is 4 EditText for input a numeric password. I want it to be like, If first EditText is filled by 1 number then, focus should goes to next EditText and should also work same in reverse manner. So that user can keep entering password from Left…
Sudip
  • 647
  • 2
  • 7
  • 28
0
votes
2 answers

How to find out what action and/or flag is used with imeOptions?

In the following code: public InputConnection onCreateInputConnection(EditorInfo outAttrs) { InputConnection inputConnection = super.onCreateInputConnection(outAttrs); // What is included in the outAttrs.imeOptions return…
malhobayyeb
  • 2,725
  • 11
  • 57
  • 91
0
votes
1 answer

Samsung: On power off InputMethodService is crashed (NullPointerException)

Unable to detect the issue.This issue is specific to Samsung Device. Another thing that i got in my log : "Unexpected null in startExtractingText : mExtractedText = null, input connection = com.android.internal.view.InputConnectionWrapper" 11-23…
0
votes
1 answer

Input method for timer app

I'm new to Android and currently working on a timer app to get familiar with it. I'd like to get a user input for setting the timer. I'd like to have it in an HH:mm:ss format. The UI shall initially display the "00h 00m 00s" string and a number…
Gugger
  • 21
  • 4
0
votes
1 answer

Cannot show TabLayout in InputView

I'm creating an Android input method, and want to use TabLayout from the support library in the InputView (the UI where the user inputs text in the form of keyclicks). The layout for the InputView is very simple:
Ziming Song
  • 1,176
  • 1
  • 9
  • 22