There's a couple of issues that i have with the way Android sees my card...
- The Gallery App shows CD artwork as a separate photo album.
- I want to exclude some things from shuffle playback by the music player.
- there's probably more thing that could appear better if we new what Media Scanner was doing....
Answer
Summing up from the comments, and adding a little.
There's no complete documentation for the entire cards structure, that seems not to be fixed. However, some directories seem to be more or less common:
- the developers guide suggests app specific data should be stored below
/sdcard/Android/data/
(/files/
represending the name of the package the data belongs to, which looks likecom.example.android.app
), and/Android/data/
for external cache files (basically, this corresponds to the/cache/ /data/data/
directory on internal storage)/ - same source recommends a bunch of directories to store files intended to be shared among apps. All of those directories are located in the root of the card, and include:
Music/
- Media scanner classifies all media found here as user music.Podcasts/
- Media scanner classifies all media found here as a podcast.Ringtones/
- Media scanner classifies all media found here as a ringtone.Alarms/
- Media scanner classifies all media found here as an alarm sound.Notifications/
- Media scanner classifies all media found here as a notification sound.Pictures/
- All photos (excluding those taken with the camera).Movies/
- All movies (excluding those taken with the camcorder).Download/
- Miscellaneous downloads.
If you wish to exclude a directory from the media scan (i.e. from being indexed for the gallery), you can place a file named .nomedia
there. This will tell the media scanner to skip this directory (including all files and subdirectories) from a scan -- thus neither images, nor audio or video files stored here will turn up in the gallery. You however can still access them by looking them up manually. Up to my knowledge, there's no way to restrict this to a certain media type (i.e. having the media scanner index audio/video, but skip images). Important: Note the "dot" at the beginning of the file name (making it a "hidden file"). This must be included with its name.
No comments:
Post a Comment