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. Can Android run on 64M RAM ?

I am thinking of porting Android on a system with only 64 Meg SDRAM ? Is it
doable ? Has it been done.



2. Android google groups web page -- is it broken?

I am sorry if this is SPAM. I tried posting to android-developers using the web 
interface. Some of my posts aren't delivered until 2 days later. Some other 
posts are completely lost.

Has anyone else seem the same problem?

Is the answer -- "don't use google groups web page"? That would be kind of 
funny ...


3. How to quickly update the package without restarting the simulator?

4. How to see compiler errors

5. When will we get root back?

6. Opening settings.db from the code!

7. Strange Toast error