Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/205.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android中的MathJAX_Android_Webview_Mathjax - Fatal编程技术网

Android中的MathJAX

Android中的MathJAX,android,webview,mathjax,Android,Webview,Mathjax,我试图在Android的webview中显示数学公式。我已经在一个单独的html文件中编写了代码,并使用以下代码显示公式: String data =inputStreamToString1(); myWebView.loadData(data, "text/html", "utf-8"); 我在html文件中放置了以下几行以动态加载mathJAX: <script type="text/javascript" src="http://cdn.mathjax.org/mathjax

我试图在Android的webview中显示数学公式。我已经在一个单独的html文件中编写了代码,并使用以下代码显示公式:

String data =inputStreamToString1();
myWebView.loadData(data, "text/html", "utf-8");
我在html文件中放置了以下几行以动态加载mathJAX:

<script type="text/javascript"
   src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>

问题是当我在emulator(Android版本2.2)中运行应用程序时,mathJAX没有加载。然而,在我的手机(Android版本2.1)中,mathJAX加载正确

谁能告诉我这个问题的原因吗

此外,当webview在emulator中打开时,我会收到以下警告:

“在这种情况下不支持webcore”


此警告与未加载mathJAX有关吗?

首先,您可以尝试mathJAX的本地副本。第二,尝试不同的配置。注意:cdn.mathjax.org即将结束,请查看迁移技巧(也许还可以为未来的读者更新您的文章)。