Is there any documentation on the correct/expected directory structure of the external memory card? 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....
Summing up from the comments, and adding a little.

Directory structure

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/&lt;package_name&gt;/files/ (&lt;package_name&gt; represending the name of the package the data belongs to, which looks like com.example.android.app), and /Android/data/&lt;package_name&gt;/cache/ for external cache files (basically, this corresponds to the /data/data/&lt;package_name&gt;/ 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.



Excluding directories from Media Scan

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.