MathJAX in Android

◇◆丶佛笑我妖孽 提交于 2020-01-13 12:11:24

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!