链接Android项目外部资源文件夹 [英] Link android project to external asset folder

查看:243
本文介绍了链接Android项目外部资源文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的PhoneGap开发一种在Android和iOS同时运行的应用程序。这两个项目将分享他们放在外面www文件夹。
如何将Android项目链接到 WWW 文件夹?当我运行我的应用程序,它会抛出应用程序错误出现网络错误。 (文件:///android_asset/www/page/main/main.html)

我在<一个尝试的解决方案href=\"http://stackoverflow.com/questions/6843181/how-to-link-assets-www-folder-in-eclipse-phonegap-android-project?rq=1\">this螺纹但没有成功。

的JavaSource:

  super.loadUrl(文件:///android_asset/www/page/main/main.html);


解决方案

终于找到了这个博客的解决方案:的http://www.tricedesigns.com/2012/02/16/linked-source-files-across-phonegap-projects-on-osx/

I am using phonegap to develop an application which runs on android and iOS both. These two projects will share a www folder placed outside them. How to link the android project to the www folder? When I run my app, It throws Application Error A network error occurred. (file:///android_asset/www/page/main/main.html)

I have tried the solutions at this thread but no success

javasource:

super.loadUrl("file:///android_asset/www/page/main/main.html");

解决方案

Finally found a solution at this blog: http://www.tricedesigns.com/2012/02/16/linked-source-files-across-phonegap-projects-on-osx/

这篇关于链接Android项目外部资源文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆