11

Possible Duplicate:
How to link assets/www folder in Eclipse / Phonegap / Android project?

I want to develop the html and javascript files for my phonegap project in a different folder than the standard "assets/www" folder (for android sdk on eclipse windows). i thought i could include a linked folder in my eclipse project but the linked folder did not appear to compile into the apk as the app stated that the resource could not be found.
anyone else try to do this?

Community
  • 1
  • 1
Paul
  • 9,285
  • 6
  • 29
  • 37
  • Are you getting exception (from Trace) "java.io.FileNotFoundException? Assets are automatically compressed as part of putting them in the APK file so you may not b seeing it. I do use HTML files in sub folders w/in the assets/www folder w/o an issue. I believe because the HTML files are compressed, Android needs to know that they are HTML & does so by having the files in that folder only. –  Jan 04 '12 at 01:42
  • 2
    Isn't this what you are looking for? http://stackoverflow.com/questions/6843181/how-to-link-assets-www-folder-in-eclipse-phonegap-android-project – Goddchen Mar 20 '12 at 07:24

1 Answers1

3

I use symlinks, yes they work on windows also. I have tested it with phonegap in visual studio/windows phone project and it works fine.

See wikipedia for details http://en.wikipedia.org/wiki/NTFS_symbolic_link

Example: (Make sure you have moved your www folder to c:\www )

cd MyProject/assets/

mklink /D www c:\www

That should do it

jornare
  • 2,903
  • 19
  • 27