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
4 answers
Hide software keyboard if EditText is not empty
I'm trying to hide the software keyboard when the login activity is loaded with the EditText already filled with the sharedPreferences data.
I've tried this code found in other questions, but it doesn't…

The Condor
- 1,034
- 4
- 16
- 44
0
votes
1 answer
Android - Communication between two services in the same application
In an application that I am developing I have a main Activity that starts one Service (it is a floating window, I am using StandOut library). The same application contains a class that extends InputMethodService, I'd like to make them communicate,…

Vektor88
- 4,841
- 11
- 59
- 111
0
votes
1 answer
Do preference Activities run in the same process as the Input Method Editor?
In android, does the Input Method Editor's preference Activity run in the same process as the IME?

Orca Ninja
- 823
- 1
- 15
- 29
0
votes
0 answers
InputMethodService: how do I lock orientation?
I am implementing an InputMethodService. I found out that in some use cases it is extremely easy to turn the device unintentionally so that the screen orientation changes. Unfortunately, this means that the application's view is re-created and the…

18446744073709551615
- 16,368
- 4
- 94
- 127
0
votes
1 answer
Inputting analogue data via USB
I am trying to build this device which takes analogue input from the earth , converts them into electrical impulses which I wish to input into a android smartphone for data analysis. I initially thought about using the 3.5mm jack of the android…

Tamonud Modak
- 21
- 2
0
votes
2 answers
Input Text in an Alert Box
I want the user changes the text of a button many times he wants. To do that, he makes a long click in that button. This is the code:
@Override
public void onCreate(Bundle savedInstanceState) {
//blah blah
final AlertDialog.Builder alert = new…

JoeCoolman
- 512
- 3
- 8
- 27
0
votes
2 answers
Handling objects in Android
I want to keep some objects in memory for operations in all the activities of my app and I also want to store those objects when the app closes. Which is the most efficient way of doing this ? Some possibilities that I can think of are:
1) Keeping…

Atinder
- 195
- 1
- 2
- 10
0
votes
1 answer
Can soft keyboard implementation determine its caller?
I'm thinking of creating a modified soft keyboard.
My question: is it possible to determine how the soft keyboard has been invoked? Can the soft keyboard implementation figure out that it came from an input field in the FooBarBaz app, or from an…

John Q Citizen
- 321
- 1
- 6
- 15
0
votes
0 answers
Set text in the InputMethod
I'm developing a new android app, I'm giving some parameters to a service, one of this is a string that I want to set in the inputmethod when it's displayed.
To make it clear, when the user is in this situation:
I want to change programmatically…

Marcel
- 2,094
- 3
- 23
- 37
0
votes
2 answers
Creating an application specific keyboard
I want to create a custom keyboard which will be available in my application only (It's used jut for a single EditText in one activity), and I was wondering what would be the best way to do so. Here are my specifications for the keyboard:
It should…

Jong
- 9,045
- 3
- 34
- 66
0
votes
1 answer
Is it able to show some components only when input method is active?
In an android application, I want to show some components only when the input method is active, e.g. to change the font size and color.
Is it possible and how to do it?

Freewind
- 193,756
- 157
- 432
- 708
0
votes
1 answer
Listen to hardbutton as a Service Trigger
Possible Duplicate:
Listen to volume buttons in background service?
I really need that when hard button (VOLUME_UP) is pressed for 3 seconds it triggers actions like display a normal activity and send messages.
AFAIK, there's no such thing like…

Virgílio Santos
- 412
- 2
- 13
0
votes
1 answer
Disable hard keyboard input for EditText in Android
I'm new to android and I need to set a EditText to use soft keyboard input only. It should not display any text that I type using the hard keyboard.is this possible ?
Update:
I use the hard keyboard input to track key events using onKeyDown method…

Gamesha
- 11
- 4
0
votes
2 answers
How to avoid the Input Method hiding the EditText and Button at the bottom of a WebView
I load a web page by using WebView in my app and there are EditText and Button at the bottom of the page. When I press the EditText, the soft input method will show, but the input method hides the EditText and Button.
I want the EditText and Button…

Lei Guo
- 2,550
- 1
- 17
- 22
0
votes
1 answer
Developing InputMethod For Burmese :: Android
I am developing Burmese Input Method for android 4.0.
I am following the sample soft keyboard provided in API Demos.
Now My question is
In qwert.xml of sample soft keyboard.I got the following.
....

Ashwin N Bhanushali
- 3,872
- 5
- 39
- 59