1

Possible Duplicate:
cover art on android

I'm having a weird problem with Android Content Resolver. I'm trying to do a simple query for the Album Art of a music, but it's throwing an exception.

Here is the code:

Cursor cursor = context.getContentResolver().query(
    MediaStore.Audio.Media.EXTERNAL_CONTENT_URI, 
    new String[] { MediaStore.Audio.Media.ALBUM_ART }, 
    null, 
    null,
    null);

And I'm getting the following exception:

05-16 09:27:38.319: ERROR/AndroidRuntime(3860): Caused by: android.database.sqlite.SQLiteException: no such column: album_art: , while compiling: SELECT album_art FROM audio

But if audio table doesn't have the column album_art, why there is MediaStore.Audio.Media.ALBUM_ART?

Community
  • 1
  • 1
Paulo Cesar
  • 2,250
  • 1
  • 25
  • 35

1 Answers1

3

I had the same problem. The solution is at this SO question: cover art on android

Community
  • 1
  • 1
Mojo Risin
  • 8,136
  • 5
  • 45
  • 58