views:

28

answers:

0

I have a problem interacting with a Web View. I'm showing an html login form within a web view and I can't type inside of any of the input fields of the forms. I do can interact with the links, select boxes, buttons, etc.

Here is an example of my code. Basically I'm retrieving the web view from the xml and setting it a WebViewClient and a WebChromeClient.


webview = (WebView) findViewById(R.id.loginWebview);
webview.getSettings().setJavaScriptEnabled(true);

WebViewClient client = new WebViewClient();
webview.setWebViewClient(client);

webview.setWebChromeClient(new WebChromeClient());
webview.loadUrl("http://www.google.com");

Any ideas?