Album Art

by Protocol-X » Sat, 27 Dec 2008 16:02:38 GMT

Sponsored Links
 Does anyone have a working Example of ALBUM_ART,  I have tried every
example out there and cannot find any that actually retreive the art.
the Lack of support on googles behalf on issues seems to be getting
greater as well

Album Art

by Michael » Tue, 06 Jan 2009 06:18:17 GMT

 > Does anyone have a working Example of ALBUM_ART,  I have tried every

I'm doing this in an unreleased application.  I made an account over
at, and make a simple HTTP request to their server,
retrieve the XML result, parse it, locate the image URL, fetch the
image, and cache it on the SD card.

I don't really see this as an Android-specific issue, it's a simple
task in Java really.

Sponsored Links

Album Art

by rktb » Tue, 06 Jan 2009 06:21:34 GMT

 MediaScanner retrieves ALBUM_ART. You may check that service.



Album Art

by Protocol-X » Tue, 06 Jan 2009 18:16:09 GMT

 I know media scanner does but the problem is it does not work.. even
using a working example in the samples it will not pull the album
art.. i am not the only once experiencing this problem either.  it
breakes the code trying to pull the album art  so im looking for a
working example


Album Art

by Dominic » Fri, 09 Jan 2009 00:01:12 GMT

 Michael said:

Hi Michael,
  I'd agree that fetching the album art is a java exercise, but
coaxing android to use it once downloaded seems tricky.  Once saved to
the card I guess that your android app would then have to trigger a
rescan to pick up the new album art and associate it with the already
scanned media.  Otherwise the the album art URI would remain null even
though you've saved the .jpg to the card.

  Have you been successful with doing that (getting android to use the
downloaded and saved .jpg)?  Have you gotten the downloaded art to
appear in any of the media players?

Or, as an alternative to triggering another scan, maybe the app could
cache the .jpg to the sc card, then run an update() itself to modify
the album art URI of the media.(?)  That would circumvent having to do
a rescan.  I've been attempting that today without luck (so far!) with
varients of the following:

//the following code does not work and I'm not yet sure why...
long idOfAlbumIwantToSetArtFor = 1;  //source of the '1': from a
previous query I did against albums.
Uri itemUri = ContentUris.withAppendedId
ContentValues values = new ContentValues(1);
values.put(MediaStore.Audio.Albums.ALBUM_ART, artURIonSDCard);
context.getContentResolver().update(itemUri, values, null, null);  //
<-- the money call

Unfortunatly, the update keeps returning failed for me.  Log says
content://media/external/audio/albums/1 is an Unknown or unsupported
URL.  I know that URL exists since a .query call does yield a list of
albums and one of them is id 1.

Anyone know if it's 'A Bad Thing' for an app to attempt to update the
album art URI itself?  If not, anyone know what I might be doing wrong
above?  Anyone know if it's legal to use a remote URI for the album




Other Threads

1. Smart lock with child lock

Barusan browsing market ada ketemu aplikasi yg bisa mecegah orang lain untuk
tidak membuka aplikasi yg kita kehendaki. Mungkin ini cocok untuk ortu yg
ingin anaknya tidak membuka aplikasi aplikasi "wah"

Jonitan17 , HTC MAGIC

"Indonesian Android Community [id-android]" 

2. CTS not detecting Zoom2 device

Can you make sure of adb bridge, with emulator and zoom seperately one at a

I guess the tag "emulator-5554" is used by zoom2 too..
Pls check

> website: 

3. tanya GPS navigasi

4. Selling outside the Android Market--> Use Google Checkout to sell direct from website??? SlideMe.Org??

5. DrawableBitmap, Canvas and OR

6. LiveFolders Cursor-returned Intent not working

7. Can I compile an app in 1.6 and run it on a 1.5 device?