Packaging "hidden" asset files

Posted by ChaimKut on Stack Overflow See other posts from Stack Overflow or by ChaimKut
Published on 2010-06-09T14:41:09Z Indexed on 2010/06/09 14:42 UTC
Read the original article Hit count: 213

Filed under:
|
|
|

I'm placing the file '.nomedia' into a folder in order to avoid Android's MediaScanner from detecting the media files in the folder. I need to copy this folder (including '.nomedia') from the APK's assets to the SD card (so other apps can make use of these media files, etc.). When I package the APK in Eclipse, it doesn't package the '.nomedia' file. Presumably it's detecting it as a hidden file. Any ideas how to fix this? Is there a secret aapt flag I can use? I'd like to avoid copying the folder and then manually creating a '.nomedia' folder, if possible.

© Stack Overflow or respective owner

Related posts about android

Related posts about hidden