You might want to read this post for more info how the IME works.

http://android-developers.blogspot.com/2009/04/updating-applications-for-on-screen.html

You shouldn't need the set a key listener. An editable text view
should invoke the virtual keyboard for you when it received "focus".
If you want to interact with the current input method, you can query
for the InputMethodManager.

http://developer.android.com/reference/android/view/inputmethod/InputMethodManager.html

You might also run into panning issue with accepting input in a dialog
as describes in the thread below

http://groups.google.com/group/android-developers/browse_thread/thread/7cfdf6e5acd2c229/ab38dc2e02cba903?lnk=gst&q=dialog+keyboard#ab38dc2e02cba903



On May 25, 6:46 am, guruk <[email protected]> wrote:
> Hi, I have an Input in a Dialog and when I invoke SetkeyListener
> the Virtual Keyboard does not appear? With the hardware keyboard not
> Prob.
>
> What can I do that the Virtual keyboard also appear with seKeyListener
> Or how do i Make a accepted Chars with the virtual keyboard?
>
> dapikeyfield.setKeyListener(new NumberKeyListener()
> {  private static final String CHARS="
> abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
>
>   �...@override
>    protected char[] getAcceptedChars() {  return(CHARS.toCharArray
> ());  }
>
>    public int getInputType() {  // TODO Auto-generated method stub
>                                        return 0;    }
>
> });
>
> Hope there is a solution with the code above and I do not need a extra
> keylistener for the virtual keyboard
> and even checking if the virtual keyboard is active....
>
> thanks
> chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to