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
Post a Comment