Sounds like a device bug. The following solution is extremely theoretical:
Step #1: Add Javascript event handling to your code to find out when a field gets focus. I'm no Javascript expert, but I seem to recall there are some events for this. Step #2: Have the Javascript notify your activity via a Java object you inject via addJavascriptInterface(). Step #3: For known problematic devices, have your Java object manually pop up the input method editor via InputMethodManager. Be careful about problematic devices with side-slider keyboards -- you only want to display the soft keyboard when the physical keyboard is unavailable. Other solutions would involve not using setUseWideViewPort(), or threatening your Hero with a sledgehammer until it starts to behave. On Sat, Feb 19, 2011 at 6:47 AM, Neilz <[email protected]> wrote: > Hi. I have a WebView which loads a webpage that uses a form, for the > user to complete. > > I set this method: > > webSettings.setUseWideViewPort(true); > > ...which helps the webpage display properly. > > However, for some reason, when you click in the text fields on the > webpage, the soft keyboard fails to popup - but only on my HTC HERO! > On all other emulators and devices I've tested, it's fine. > > It works if you 'long press' in the field, but new users would never > know that. > > Any suggestions? > > -- > 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 > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1 and http://bit.ly/smand2 -- 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

