[英]Android XDK Intel Html5 - img src width file:///storage/sdcard0 does't work
if I tag a link on img src put file directly: file:///storage/sdcard0/myimg/test.jpg, so the image in the Preview are view but in Android Build compilation appears not. 如果我直接在img src放置文件上标记一个链接:file:///storage/sdcard0/myimg/test.jpg,那么“预览”视图中的图像将显示,但Android Build编译中的图像则不会显示。
<img src="file:///storage/sdcard0/myimg/test.jpg">
Its correctly in App Preview. 在App Preview中正确显示。 Not view with Android ? 无法使用Android查看?
Why? 为什么? Do I need to use a different path? 我需要使用其他路径吗?
The problem is solved. 问题已经解决了。
I installed the new version (Sep 2014) of XDK. 我安装了新版本的XDK(2014年9月)。 In this version, let the android.config.xml files to edit and expand itself. 在此版本中,让android.config.xml文件进行编辑和扩展。
I put the Permission "READ_EXTERNAL_STORAGE". 我把权限“ READ_EXTERNAL_STORAGE”。
Now the images are displayed. 现在显示图像。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.