Return to Snippet

Revision: 53013
at November 10, 2011 03:37 by arpit


Initial Code
WebViewwebView=(WebView)findViewById(R.id.web_view);

WebSettingssettings=webView.getSettings();

settings.setJavaScriptEnabled(true);

settings.setDomStorageEnabled(true);

settings.setDatabasePath("/data/data/my.package/folder");

webView.setWebChromeClient(newWebChromeClient()        

{@OverridepublicbooleanonConsoleMessage(ConsoleMessagemsg){
        //pipethistoLogCat
}});

webView.addJavascriptInterface(newMyInterface(),"zorro");

webView.loadUrl("javascript:tarzan.start()");

Initial URL
http://www.slideshare.net/mobile/michael.galpin/android-lessons-you-wont-learn-in-school

Initial Description

                                

Initial Title
JavaScript / Native app inter communication in Android

Initial Tags
android

Initial Language
Java