0

I queried for ALBUM_ART and ALBUM and dumped the cursor

final Cursor mCursor = getContentResolver().query(
                MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI,
                new String[]{MediaStore.Audio.Albums.ALBUM_ART},
                MediaStore.Audio.Albums._ID + "=?",
                albumID,
                null
        );

if (mCursor.moveToFirst()) {

DatabaseUtils.dumpCursor(mCursor);
mCursor.close();

} else {

mCursor.close();

}

Here is the cursor dump output

System.out: 0 {
System.out:    album_art=/storage/emulated/0/Android/data/com.android.providers.media/albumthumbs/1445591197242
System.out:    album=Samsung
System.out: }
System.out: 1 {
System.out:    album_art=null
System.out:    album=The Piano Starts Here
System.out: }
System.out: 2 {
System.out:    album_art=/storage/emulated/0/Android/data/com.android.providers.media/albumthumbs/1446000978698
System.out:    album=Maiden Voyage
System.out: }
System.out: 3 {
System.out:    album_art=/storage/emulated/0/Android/data/com.android.providers.media/albumthumbs/1446001599761

One can see that album The Piano Starts Here has null ALBUM_ART

System.out:    album_art=null
System.out:    album=The Piano Starts Here

However, having downloading a random music player from the Play store, I can see that somehow, this music player (among others but not all) is able find the album art somewhere on my phone. This art is not coming from some random image file in my music folder.

Where is it coming from? I didn't download this music onto my phone. I transferred it from my computer.

enter image description here

the_prole
  • 8,275
  • 16
  • 78
  • 163

1 Answers1

0

Most commercial music apps in google play store saves the downloaded album arts into it is data folder. You can use several API's available for that services such as GraceNote, Discogs or Amazon. In most cases applications download album art and info form these services and store it inside the .storage or in DCIM folder.

Orkun Kocyigit
  • 1,137
  • 10
  • 21
  • Where are these two directories located? On internal or external storage? And do you mean DCIM (digital camera images) or SCIM? – the_prole Nov 19 '15 at 05:17
  • Yeah, I meant DCIM that was misspell. I tried 3 different applications which all of them stored in DCIM .thumbnails. I am sure it is not something you have to do it but it was that case for these applications – Orkun Kocyigit Nov 19 '15 at 06:23
  • Never heard of .storage what is it? – the_prole Nov 19 '15 at 10:34