Created
April 25, 2017 06:55
-
-
Save ekos/2192cd58e02f598f882c132ad1799551 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 webview; | |
String htmlString = "<script>"+ | |
"httpObj = new XMLHttpRequest();"+ | |
"httpObj.open('GET', 'http://test.ekos.biz/android_loadDataWithBase.txt', false);"+ | |
"xmlHttp.send(null);"+ | |
"document.write(xmlHttp.responseText);"+ | |
"</script>"; | |
webview = (WebView)findViewById(R.id.webView);//layoutのWebView参照 | |
webview.getSettings().setJavaScriptEnabled(true); | |
webview.loadDataWithBaseURL( null, htmlString, "text/html", "UTF-8", null ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment