I developing a phone gap based app for iPhone and Android. i have my web app files(UI screens developed using CSS, HTML5, JS) in www folder. i want to have a common www for both iPhone and Android so i placed the folder www outside iPhone and Android projects in my file system and configured the Xcode to have a link to that. For iPhone it is working perfectly. IN the case of Android i need to have this folder under assets. If the www folder is copied inside assets it is working fine. But if i try to give a link inside assets to www my project is working. It throws error “File not found /www/index.html”. Can someone help me to solve this situation. So that i maintain www in one place and both my iPhone and Android refers to the same folder.
thanks.
The best way I’ve found to work with this is to use a symbolic link to the folder in your projects. This lets you keep one set of files, and you can link them to wherever you want in your project while still working on the same source.
For Unix type systems use:
Since you’re working with an iPhone project as well I’m assuming you’re on a Mac, but here’s the Windows Vista/7 version: