Is it possible to pack resources in a way that they get distributed with apk? I know it's impossible to use subfolders in res's directories (drawable, raw, etc)... so I was wondering if I can create folder (data) and somehow tell compiler to include all resources from that folder - and later access them with InputStream (without using R.)
Thanks!
The only thing I can think of that comes close to fitting your description is to use the assets/
directory in your project. Everything in there (including subdirectories) gets bundled into the APK and can be accessed at runtime via an AssetManager
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.