When a search screen is shown I request focus for an input field in a
webview. From the onfocus handler for the input field I call into a
java api to request that the keyboard be shown. Inside that java api I
try the following code...

InputMethodManager imm = (InputMethodManager)mWebView.getContext
().getSystemService(Context.INPUT_METHOD_SERVICE);
imm.showSoftInput(mWebView, InputMethodManager.SHOW_FORCED);

This is not causing the keyboard to show. If the user taps the input
field it shows. But then every time a character is typed a UL element
is populated and the keyboard disappears even if the input field still
has focus. Setting focus explicitly does not help the only way to get
the keyboard back is for the user to tap the input field again.

Most examples I've seen have you do the above code with an EditField
widget. In this case how can I get it to work with a WebView?

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