I am working with Android's standard softkeyboard input method editor. I am showing the softkeyboard on my android emulator after a specific key has been pressed and an edittext view has focus. My purpose is to set the focus on the softkeyboard after it appears on screen. I know softkeyboards are generally used for input without a hard keyboard at all, but in my case the app I am developing needs this functionality as it will run on a custom device and android's source is being modified for custom functionality. Does anybody have any idea on how to tackle this problem? Could it be possible that touch mode does not allow to set focus on the keyboard?
EDIT: Clarification
Sorry for being ambiguous. Basically I require the following functionality from the softkeyboard in the following case.
- User places cursor (using keyboard) on EditText. Because he is using a keyboard the application will not show the softkeyboard.
- User presses a SPECIAL key on the keyboard to bring up the softkeyboard.
- Focus should change frrom the EditText to the SOFTKEYBOARD, meaning that the user should be able to navigate and select keys on the softkeyboard using the hard keyboard. Of course this means that key events should be added to the standard softkeyboard.
- After user chooses a key he presses enter (for example) and the key character should appear on the edittext.
Right now the problem is that when i bring up the softkeyboard the FOCUS remains on the edittext. I would like to know if it is even possible to place the focus on the softkeyboard and move on it using a hard keyboard. As i told you before this is custom functionality. Maybe I am tackling this problem the wrong way and a simple popup window with a keyboard view would suffice.
Lauren I think you are right in the sense that the standard softkeyboard is implemented as a service and does not follow the rules of regular views.
Any advice is appreciated.
Thanks