Created
October 13, 2010 15:47
-
-
Save sudar/624303 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WebView wv = (WebView) findViewById(R.id.wv1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<WebView android:id="@+id/wv1" android:layout_height="wrap_content" | |
android:layout_width="fill_parent" android:layout_weight="1" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wv.loadUrl("file:///android_asset/flot/stats_graph.html"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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