Is is possible to get the virtual keyboard key events on a custom input field ? I tried using keyboardView, but somehow that doesn't work. Is it mandatory to use the android input method classes to get the events?
I would like to show a custom input field (specifically, one containing only 9-0 and two extra buttons containing decimal separator (, or .) and a delete button). I could create a custom IME, but (as far as I know) that would have to be set by the user as the system-wide input method. Is there a way to implement an input method and bind it to a specific input field?
I'm having a very very strange problem with input and textarea html tags in a WebView. Basically they never seem to gain input focus with the virtual keybaord. which shows a single input box. There is now way just tapping around the screen to get it to accept input. Strangely, if I use my trackball on my G1 to select the field, I can eventually get focus and type in it. For trackball-less things like the N1, that doesn't help though.
and also, InputMethodManager imm = InputMethodManager.peekInstance(); Log.d("tag", imm.isFullscreenMode());
My phone is in landscape mode. My application has an EditText. My keyboard(virtual/soft) is not visible. I expect the above codes (written inside TextView.java) to print false. But it prints true. How is that possible?
I want that on each key press I require to change the Counter some what similar to Tweeter Thing but the issue is that OnEditorActionListener only calls for the change while the user presses Enter or Done key, Please Can I Find a Resolution for this.
I have an EditText that is to collect input for a basic calculator. I want to bring up the numeric keyboard, and thus I set android:inputType to numberDecimal|numberSigned. Problem is, the EditText filters out all characters that aren't numeric, such as "(", ")", "/", "*". I have tried overriding this behaviour by setting a custom InputFilter which filters nothing out, but it seems to have no affect on the EditText. Is there any way for me to display the numeric soft keyboard without the filtering behaviour?
I've been doing some usability testing on a website I'm developing, using an Android phone and an iPod touch. In both cases, when entering a numeric field (time, distance in metres, etc) I have to take a manual step to change the keyboard layout to show digits. As the app will only accept numeric values in the text box, I'd like to save the user the inconvenience and tell the device "switch to the number pad for this input".
What can be the problem? I've thought another way to make it works: Whenever the user try to modify the email field ignore whatever he do, but I think this is a less professional way to fix that.
I'm getting the G1 next weekend and am wondering how long until a virtual keyboard will be available. I really like the idea of having a full slide-out keyboard but I would also like a virtual one so if I'm not wanting to say much I can just use the virtual keyboard or if I'm in an area where it needs to be quiet I don't need to have the sound of the keyboard sliding open.
Basically I want to capture Alt-key combination to provide some customized alternative text input. For example Alt-f would put FOO into the text field. However there doesn't seem to be ALT key on the virtual keyboard in ether portrait or landscape. Is it possible to fake Alt key on the virtual keyboard somehow?
I have developed an app that uses setTextFilterEnabled(true). It works perfectly on my G1. My partner has a new MyTouch phone that does not have a real keyboard. He cannot use this functionality at all. He tried holding down the menu key(and so have I) but the keyboard does not appear. Without a keyboard, this app is dead on arrival.
Is there a way to configure the virtual keyboard to "hide" once the return key is pressed? I have numerous EditText fields in my application and I want the user to be able to enter a single line value, press return, and the keyboard goes away.Is there a way to override the virtual keyboard return key?
If I´m using the T-Mobile G1, then the QWERTZ- keyboard is very good. But if I only want to use one hand, then I have to use the keyboard. Is it possible to add a virtual keyboard to the T-Mobile G1? I've heard, the new HTC Magic (with Android) has got one!
Using the 1.5 SDK. I have an application with a TabActivity and when I change from one tab with edit fields to another that does not need any user input I would like the virtual keyboard to be hidden. I've tried setting android:windowSoftInputMode="stateAlwaysHidden" on the manifest for the activity that doesn't need user input but it didn't work (maybe because the activity is triggered by a TabActivity).
I've found the method hideSoftInputMethod(IBinder, int) in the InputMethodManager class but I don't know how to get the IBinder object that this method needs.
How do I get that IBinder object? Are there other ways to hide the soft keyboard?
It would be even better if I could make the soft keyboard automatically hide when an EditText loses focus.
I am currently working on sdk 1.5, in which i want capture the Click event of Enter key on Virtual Keypad. My requirement is, for my Username/Password Login screen. Click on Username field. Cursor is displayed in Text entry box. Click on Enter key on Virtual Keypad. Cursor should be displayed in Password field. Take the cursor in Password field. Click on Enter key on Virtual Keypad. Virtual Keypad should be closed. I am testing the app on HTC Magic.
I was fillding with EditText and handling of events, and I was wondering on a strange thing:
If you press some of the keys (for example forward slash '/') on the emulated physical keyboard, the keyevents are called as usual (onKeydown, the KeyListeners etc). If I click on the corresponding virtual key on the onscreen virtual keyboard, all these callbacks do not get called at all! This is strange, given that If I press other keys like alhpanumerical, the events are called.
I need help with showing the integrated virtual keyboard on-screen. I extended a View class and I implemented these two methods (most of it is just stub code; for now I only want to display the keyboard):
Where editor is an instance of my View. I noticed in the debugger that my onCreateInputConnection() is executed but after that the keyboard is not displayed on the screen. Using the TextView widtget and it's subclasses is not an option.