I would like to import an external directory into the Assets folder, in which there are some files that I need to split on different distribution platforms of the same application, mainly HTML files.
I tried adding the Linked Folder to the Android project from New-> Folder-> Advanced using an absolute or relative link. But then
getAssets().open("folder")
Crash with FileNotFound exception.
I also tried the command line from the resource folder:
ln -s ../../source_folder dest_folder
This creates a new โaliasโ folder in the file system, but Eclipse does not receive the folder as a related resource, but as a regular โfolderโ. I would go with this solution, but since we are a team of several developers who use the same project, I believe that the alias will not work on all systems, as a result, some files will be saved in a new folder with the alias, and others on source folder.
In conclusion: is there anyone who has come across the same problem? Is there any way for a command to refer to an external folder as an Android resource?
source share