Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/221.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 从静态html中的资产引用本地资源_Android - Fatal编程技术网

Android 从静态html中的资产引用本地资源

Android 从静态html中的资产引用本地资源,android,Android,我的活动中有一个webview,并通过以下方式加载了webview的内容: webview.loadUrl("file:///android_asset/description.html"); <a href='file:///android_asset/uml.html'>see UML diagram</a> 在description.html中,我通过以下方式引用了位于同一位置的另一个html文件: webview.loadUrl("file:///androi

我的活动中有一个webview,并通过以下方式加载了webview的内容:

webview.loadUrl("file:///android_asset/description.html");
<a href='file:///android_asset/uml.html'>see UML diagram</a>
在description.html中,我通过以下方式引用了位于同一位置的另一个html文件:

webview.loadUrl("file:///android_asset/description.html");
<a href='file:///android_asset/uml.html'>see UML diagram</a>

这在emulator中运行得非常好,但当我在Galaxy S mobile上运行它时,hyperlink无法正常工作。请帮帮我。我是否缺少任何权限或其他内容?

是否添加了使用互联网权限?即使您没有访问internet,使用webview仍然需要internet权限。我想。

我在G1上测试了它,它在G1上运行良好,但在Galaxy S i9000上不起作用。