Skip to content Skip to sidebar Skip to footer

Retrieving Assets From Android Lib Project

I have two separate projects, a plus and free version. Both projects use a considerable amount of shared code, so I am attempting to integrate everything that is shared into a Andr

Solution 1:

From the docs:

The tools do not support the use of raw asset files (saved in the assets/ directory) in a library project. Any asset resources used by an application must be stored in the assets/ directory of the application project itself. However, resource files saved in the res/ directory are supported.

Could you use res/raw and openRawResource() instead?

Post a Comment for "Retrieving Assets From Android Lib Project"