I had tried this out. And it works fine with Samsung tablet.
On Page 1_4.html i have to hide keypad and on 2.html I Have to show keypad.
Both on textbox click inside webview
NOTE: Android Activity is Same.
I'm calling this code on
webView.setOnTouchListener
if (value.equals("1") || value.equals("4")) {
getWindow().setFlags(WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM,WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN);
} else if(value.equals("2")) {
getWindow().clearFlags( WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);
}
But its not working in any mobile phones. It gives me Warning
W/InputMethodManager(25060): startInputInner : InputBindResult == null
I have google it. But didn't find anything useful.
What should I do now? Any help will be Appreciated.