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
2 answers

How to show suggest from input methods in an EditText?

I'm not implementing an input method, but trying to get the input state in my app. When we use 9-key mode, type 1~9 and there will be some hint. When using default input method in iOS hint will be in the EditText before you choose any suggest. I…
HJWAJ
  • 170
  • 2
  • 10
0
votes
1 answer

How to make my EditText lose focus when I touch something else?

I feel somewhat guilty asking, because there are so many questions about, but I couldn't find a solution. How to make my (single) EditText lose focus when I touch outside? By focus I mean the view being ready to get input, with cursor visible. I…
natario
  • 24,954
  • 17
  • 88
  • 158
0
votes
0 answers

Unicode characters available in Android 5.0.1 but missing in 4.3

I'm creating a custom engineering symbol keyboard, and I'm running into a Unicode issue. I've got a Nexus 5 with Android 5.0.1 (Lollipop), and it looks like this: Great, right? Wrong. On Android 4.3 (Jellybean), it looks like this: So in Android…
LukeWaggoner
  • 8,869
  • 1
  • 29
  • 28
0
votes
1 answer

Text Suggestions Popup

I am implementing a text editor (not using TextView or EditText components) and when a word is misspelled I would like to bring up a popup similar to what TextViews have after you tap on the word. Is this UI the TextView brings up available in the…
0
votes
1 answer

Prevent IME (Soft keyboard) from leaving the application

I want to prevent users from leaving the application (client requirement, not a mass public application). But the IME allows the user to reach settings by pressing some touch. How can I block this without developing my own keyboard ? As far as I…
Poutrathor
  • 1,990
  • 2
  • 20
  • 44
0
votes
1 answer

How to add our own emoji in softkeyboard

I am trying to figure out how the emoji (emoticon) selections are implemented on the Facebook app and the Google Hangouts app. I have creating a softkeyboard like emoji. But then i think how apps like facebook,skype etc react on it. A lot of emoji…
Zar E Ahmer
  • 33,936
  • 20
  • 234
  • 300
0
votes
1 answer

Why performEditorAction() always do an IME_ACTION_NEXT even with bad parameter?

I'm working on a accessibility service that include an IME for Android. It's important to know that is not part of an application (activity, view, etc). With a certain command, I want to stop writing on a editText when I type letters. I use the…
probitaille
  • 1,899
  • 1
  • 19
  • 37
0
votes
1 answer

Simulated Android KeyEvent - Focus

I have an input method which simulates key press as such: ic.sendKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN, event)); ic.sendKeyEvent(new KeyEvent(KeyEvent.ACTION_UP, event)); With this method I can open the menu on the device using…
Oskar Pålsson
  • 119
  • 1
  • 4
  • 14
0
votes
1 answer

Add my own custom keyboard to specific edit text

I came to a big problem. I have my own custom keyboard. My goal is to use this keyboard in my other application. First I tried to set this keyboard as a default device's keyboard programatically. I could do it through adb shell with no problem. But…
10101101
  • 193
  • 1
  • 13
0
votes
1 answer

ImageSpans are not retrieved through inputconnection / getExtractedText

I'm battling a bit with an issue. I have an app that writes some formatted text in an EditText view. It does that through a StyleableSpannableStringBuilder: public class StyleableSpannableStringBuilder extends SpannableStringBuilder { …
0
votes
1 answer

How to use setInputMethod of InputMethodManager

I want to set a custom soft keypad only to an EditText of an AlertDialog. So I have my custom keypad, and how to assign it to the mentioned list view? Is setInputMethod() is what I wnted? If so, how to use it?? Or any other possibility of doing…
nmxprime
  • 1,506
  • 3
  • 25
  • 52
0
votes
0 answers

How to commit image using InputConnection Class?

I am working on InputConnection Class of android. To commit text, we generally use below method: ic.commitText("Some Value", 1); But i want to commit an Image in place of Text. It may be something like this: ic.commitImage("/drawable/Image",…
0
votes
1 answer

Use my Android keyboard App as default Keyboard

I've made a sample android soft keyboard. I want it to use across all applications (hangout, whatsapp etc). What are the possible ways to do it? ( below are the options I'm thinking of ) To run this as service and to detect if android softkeyboard…
0
votes
1 answer

is it possible to detect/modify input from softkeyboard

I'm currently working on android service. One of its task is to read the input data entered by user (and also modify it) . The only possible way that till now, I've figured out is to make a custom keyboard and write methods in that custom keyboard.…
Abhi
  • 3
  • 3
0
votes
0 answers

How to check people input only japanese language

I want use only input japanese language but I don't know how to check between japanese input and anphabe input(sometime user could input a japanese character but missing something) So what is my missing idea. I using a dictionary with two for loop…
Trần Đức Tâm
  • 4,037
  • 3
  • 30
  • 58