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 Amazon.com, 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.

-Ravi



--~--~---------~--~----~------------~-------~--~----~



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
(MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI,
idOfAlbumIwantToSetArtFor);
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
art?


ty-

-dom

















--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Moto Droid: widget updates on orientation change

Hi,

I am updating a widget project for Moto Milestone / Droid.

Found something strange:

When I slide out the keyboard, and the screen changes orientation, my widget is redrawn, and Android even uses the layout file from layout-land. So far so good. However, the widget is not notified in any way - onUpdate is not called, and ACTION_CONFIGURATION_CHANGED cannot be received through manifest, can't be registered for with registerReceiver, and is removed for widgets in 2.0. Apparently, Milestone caches the most recent RemoteViews update and uses it to re-create the widget and update its state. One negative side effect is that my widget sets up PendingIntent for the user clicking on the widget. This is done in onUpdate(), but not - for effeciency - later, when the widget is incrementally updated. I am able to work around this by always including a PendingIntent for clicks each and every I update the widget. My second app is a bit more complex, though, and this workaround might not work. Has anyone else ran into this issue with Droid / Milestone? Any thoughts on why ACTION_CONFIGURATION_CHANGED support for removed for widgets in 2.0? -- Kostya --

2. How to implement the type-to-search UI as in the built-in contacts app





Start here:
http://developer.android.com/intl/fr/reference/android/widget/AbsListView.html#attr_android:textFilterEnabled

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 

3. Rotation slows when media player is playing

4. Seeding program phone already on someone else plan?

5. Track bandwidth usage per process

6. Mod: Butuh Sukarelawan ID-ANDROID event ICE 2010

7. Cursor and rowId