title: How do I get and display the album_art for a media player
body: <p>I've spent ages searching for this and I'm now at the point where I see no alternative but to ask for help.<br>
  I'm trying to display album art within a media player I'm using. I have almost everything else fully functional including the other metadata, playing albums (vs. individual tracks) etc.
  My code at the moment is as follows:</p>
  
  <pre><code>public View getView(int position, View convertView, ViewGroup parent) {
       System.gc();
  
       View cellLayout = getLayoutInflater().inflate(R.layout.albumbrowsercell, null);
       ImageView album_art = (ImageView) cellLayout.findViewById(R.id.albums_album_cover);
       TextView album_title = (TextView) cellLayout.findViewById(R.id.albums_album_title);
       TextView artist_title = (TextView) cellLayout.findViewById(R.id.albums_artist_title);
  
       String albumName;
       String artistName;
       int albumID;
  
       album_column_index = albumCursor.getColumnIndexOrThrow(MediaStore.Audio.Albums._ID);
       albumCursor.moveToPosition(position);
       albumID = albumCursor.getInt(album_column_index);
       Uri sArtworkUri = Uri.parse(MediaStore.Audio.Albums.ALBUM_ART);
       Uri uri = ContentUris.withAppendedId(sArtworkUri, albumID);
       album_art.setImageURI(uri);
       //code to do set text above etc.
  
  return cellLayout;
  </code></pre>
  
  <p>Logcat is giving errors similar to this:
  I/System.out(12781): resolveUri failed on bad bitmap uri: album_art/224
  Hence the problem seems to be with the appendedID. I don't know how else to call it though (I even resorted to trying random numbers to see if I could hit on one).</p>
  
  <p>It's possible that I'm making a fundamental mistake. Most of my time spend so far has been due to learning how to work with the content providers etc and I'm still not even 50% sure about them (never done Databases or Android before).</p>
  
  <p>Also, is it just be me or is the Android documentation, at least regarding this topic, pretty rubbish?</p>