Keyboard in HTML text-input disappear when WebView call 'loadUrl' again
Posted
by
Jr.
on Stack Overflow
See other posts from Stack Overflow
or by Jr.
Published on 2010-12-27T03:52:53Z
Indexed on
2010/12/27
3:53 UTC
Read the original article
Hit count: 360
android
Hi there, I use WebView for my Androind App. I got a problem and request a solution for help.
There is a textfield in the HTML page. When it gets 'focus' and then I call
mWebView.setFocusableInTouchMode(true);
in Java code so that the Android soft-keyboard will pop-up to let me key in.
The problem is I need using multi-thread for some processes in Java and call
mWebView.loadUrl(strJSCall);
as callback to execute JavaScript function, but the keyboard gets hidden!
The way I try is to force the keyboard to show again. But how can the keyboard always show when 'loadUrl' is called? Dose anyone meet the same issue and solve it already?
Sincerely, Jr.
© Stack Overflow or respective owner