I had this same problem a couple weeks back.  I'm not addressing any
of the remaining discussion in this thread regarding Activity
constructors, resetting of content, etc..

But i did have input(type=text) and textareas that I simply could not
focus on via touch..As a Dev i readily ignored it, using trackball,
until QA bugged me about it :)

** I found webview.requestFocusFromTouch() did the trick very nicely
**

Hope that helps

On Mar 15, 6:30 pm, mike <[email protected]> wrote:
> Hi all,
>
> I'm having a very very strange problem with input and textarea html
> tags in a WebView. Basically they never seem to gain input focus with the
> virtual keybaord. The code for this is trivial:
>
> WebView w = new WebView (this);
> w.loadData("<html><body>fooz <input></body></html>", "text/html", "utf8");
> setContentView (w);
>
> which shows a single input box. There is now way just tapping around the
> screen to get it to accept input.
>
> Strangely, if I use my trackball on my G1 to select the field, I can
> eventually
> get focus and type in it. For trackball-less things like the N1, that
> doesn't
> help though.
>
> I've seen some posts about this, but it doesn't seem that there were any
> solutions or feedback.
>
> Mike

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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to