Pass gmail user id and password to webView in Android -


how pass gmail user id , password webview login in gmail?

i add load of javascript function should done when html loaded. control that, can use following:

webview.getsettings().setjavascriptenabled(true); webview.loadurl("file:///android_asset/test.html");  webview.setwebviewclient(new webviewclient(){      public void onpagefinished(webview view, string url){              webview.loadurl("javascript:init('" + theargumentyouwanttopass + "')");     }            }); 

test.html

<!doctype html> <html> <head>     <title>test</title> </head>  <body> hola adios </body>  <script type="text/javascript">      function init(val){     // whatever want parameter val     } </script> </html> 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -