问题
I am trying to display math formulae in Android's webview. I ve written the code in a separate html file and using the following code to display the formulae:
String data =inputStreamToString1();
myWebView.loadData(data, "text/html", "utf-8");
I've placed the following lines in the html file to load mathJAX dynamically:
<script type="text/javascript"
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
The problem is when I run the app in emulator(Android version 2.2) mathJAX is not loading up. However in my phone (Android version 2.1), mathJAX loads correctly.
Can anyone tell me the reason for this problem?
Also when the webview opens in the emulator, I get the following warning:
"webcore Not supported in this case"
Does this warning have anything to do with not loading mathJAX?
来源:https://stackoverflow.com/questions/6492152/mathjax-in-android