Share assets between multiple projects

As we all know, the Android Eclipse + ADT IDE platform does not support (re) using resources from the library project .

Instead, any resource resources used by the application should be stored in the assets / directory ..

My problem is that I have 8 (eight!) Applications using the same library project that uses assets, and as a result of the above restriction, I have to copy / duplicate and synchronize each of the asset files with all 8 (eight!).

This is a maintenance nightmare and error prone too.

Any idea how to get around this by sharing one copy of each asset between multiple application projects?

Note. . I would like to avoid a solution that depends on the OS or file system such as hardlinks or softlinks. I prefer a solution like context.getAssets () if it really works.

+4
source share
1 answer

Maybe everything has changed since you posted the question, but I was able to reuse the asset files from another project in my Android project. I created the project resources folder as a linked folder . I published a sample project to show how it works.

0
source

All Articles