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. Failed to upload myapp.apk on 'HT841GZ03224': Too many open files

I don't know the reason for this particular error message, but I
strongly advise you to always uninstall your app before reinstalling,
otherwise you'll run out of device memory and would have to do the
"double shutdown" or "battery pull" trick to get it back.


On Wed, Jan 28, 2009 at 9:22 PM, Mark Nuetzmann


2. How to make layout "fill" available space in middle

Use a veritcal LinearLayout and simply give the middle TextView the
attribute android:layout_weight="1.0". That's all.

Romain Guy
Android framework engineer

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them


3. Music player, mute app sound

4. fitness or workout program

5. looking for an answer about the g1 for developers

6. Starting an activity with FLAG_ACTIVITY_MULTIPLE_TASK to see multiple instances

7. onTouch event for scrolling a list