Hi Mark, thanks for response. I like your last comment, you're
thinking on the same lines as me :-)

Your step1 - are you thinking of code in the HTML that's loaded into
the webview, or Android code which can catch these events?

Another thing I've thought of:

The problem can be solved by 'pinching' the screen to resize it
slightly. As soon as it's been resized, the keyboard works. I wondered
if it's possible to programmatically resize the screen as if the user
'pinched' it?

On Feb 19, 1:19 pm, Mark Murphy <[email protected]> wrote:
> 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/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training in London:http://bit.ly/smand1andhttp://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

Reply via email to