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

Disable Android keyboard for Unity application when an Input Field is clicked

I have manually created my own keyboard prefab in Unity and I need to be able to prevent the default Android keyboard from popping up when the Input Field is clicked. Is there any way to do this at all other than not using an Input Field? The…
0
votes
0 answers

Inserting Text Into EditText With Custom Inputmethod

I am trying to create my custom input method. I created my custom inputmethod on android and now I want that when a user clicks on a view a text insert in focused edit text. How can in do that ? This is my code : @Override public View…
0
votes
0 answers

How to Catch Input from Card Reader Pin Pad

I am new to Android. Currently, I am developing an application which performs credit card transaction where each time the payment is made, phone will be connected to the card reader through the audio jack port. In order to make payment successful,…
0
votes
1 answer

Android get available input languages

I'm trying to get the available input devices on Android, in order to do that I'm using the InputMethodManager and using the API of getEnabledInputMethodList() as follows: InputMethodManager inputMgr = (InputMethodManager)…
rbd
  • 187
  • 2
  • 10
0
votes
1 answer

Android Input Method Editor Works in Landscape but not Portrait

The background for the top of the screen uses the following theme, and should be transparent. In portrait mode the background turns black. Sometimes this doesn't even happen and the background stays transparent. To test this out I'm using the TED…
D Liebman
  • 337
  • 1
  • 8
  • 17
0
votes
1 answer

Set num lock state on a hardware keyboard

Trying to set the num lock state to either always on or always off for an app. I'm guessing I can intercept the numlock press to keep the state, I'm just not sure how to set the initial state. Is there a way I can press the num lock key virtually?
0
votes
1 answer

Android - How to show a custom keyboard

I have added a custom Keyboard to my application. It works correctly when using another application that has text inputs. I have changed the settings / language and input so that it is enabled and also used as default. My problem is that I don't…
Virus721
  • 8,061
  • 12
  • 67
  • 123
0
votes
1 answer

Retrieve contact info thru inputmethod IME

I'm creating my own InputMethod (IME). When the user is typing a message to a contact using my IME, I would like to retrieve the contact's info and its attributes. Or, rephrase, how to get the info on the Contact on screen? ( Can my app communicate…
elcool
  • 6,041
  • 7
  • 29
  • 44
0
votes
1 answer

how to get user keyboard language

I am writing an application which is using a edit text .i want to know whats users input language in oncreate method or when keyboard input type changes. Is there any way to set a listener to get that change? All the answer i found were about locale…
user5105405
0
votes
0 answers

Robotium integration testing in Android Studio for custom soft keyboard

I've seen a few articles on how to set up Robotium with Android Studio, such as this link http://anirudh24seven.github.io/devlog/2015/02/13/robotium-android-studio.html or this link How to use Robotium with Android Studio?. However, I have yet to…
0
votes
1 answer

Android IME: is tehere a way to get or calc the cursor's absolute coordinates on screen

I'm creating a new IME for android and I want to render a floating UI depending on the cursor's position. I've already found that if I override the onUpdateCursorAnchorInfo function of InputMethodService (Build version Lollipop or later) than I can…
bendaf
  • 2,981
  • 5
  • 27
  • 62
0
votes
2 answers

Android soft keyboard reverts to default keyboard on orientation change

I'm building an android soft keyboard and I can't seem to fix this bug - I have an Arabic and QWERTY keyboard and when I rotate my device on the QWERTY keyboard (or even Arabic shift), it's as if my program has "restarted" and it becomes the Arabic…
sometimes24
  • 355
  • 4
  • 15
0
votes
3 answers

How to open Android soft keys with onclick listener?

I have a View that has a button. On the button click, I want the soft keyboard to pop up with numbers. I can use toggleSoftInput, however, I see no way to change the input type. public class TimerOnClickListener implements View.OnClickListener { …
Anthony Massie
  • 139
  • 1
  • 9
0
votes
0 answers

java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.Intent android.content.Intent.putExtra

What is the wrong that i have done in here. I couldn't figure it out. I have a input method service and my keyboard has images when i click on a image i am trying share the image to other application. Service Code: under onCreateInputView…
Fay007
  • 2,707
  • 3
  • 28
  • 58
0
votes
1 answer

When using taskAffinity to have multiple Activities in the Launcher for the same app, if one is active the other needs to be clicked twice

Scenario: Two Activities being shown in launcher for one app, they have different taskAffinities because I was getting the problem of when I open one, hit home, open the other, the first one would be opened. So, I added taskAffinity in the…