Skip to content

Instantly share code, notes, and snippets.

@sudar
Created October 13, 2010 15:47
Show Gist options
  • Save sudar/624303 to your computer and use it in GitHub Desktop.
Save sudar/624303 to your computer and use it in GitHub Desktop.
WebView wv = (WebView) findViewById(R.id.wv1);
<WebView android:id="@+id/wv1" android:layout_height="wrap_content"
android:layout_width="fill_parent" android:layout_weight="1" />
wv.loadUrl("file:///android_asset/flot/stats_graph.html");
WebView wv = (WebView) findViewById(R.id.wv1);
mGraphHandler = new StatsGraphHandler(wv, stats);
wv.getSettings().setJavaScriptEnabled(true);
wv.addJavascriptInterface(mGraphHandler, "testhandler");
wv.loadUrl("file:///android_asset/flot/stats_graph.html");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment