title: How Can I Get Thumbnails For Picasa Images Selected From The Gallery?
body: <p>I'm working on an application where the user is able to select files, either a new image from the camera, an image from the gallery, or a plain old file. It then shows an icon and the name for the selected item.  I have this working with one exception. The gallery application integrates picasaweb pictures. If the user selects a picture from a picasa album, I'm not able to get a thumbnail for it.</p>
  
  <p>I'm using the MediaStore.Images.Thumbnails.getThumbnail() method, and it works for other images in the gallery just fine, but for the picasaweb files, I get, regardless of what "kind" of thumbnail I attempt to get (although MICRO is what I'm after):</p>
  
  <blockquote>
    <p>ERROR/MiniThumbFile(2051): Got exception when reading magic, id =
    5634890756050069570, disk full or mount read-only? class
    java.lang.IllegalArgumentException</p>
  </blockquote>
  
  <p>I noticed the URI's given for the selected files are different. The local image files look like:</p>
  
  <blockquote>
    <p>content://media/external/images/media/6912</p>
  </blockquote>
  
  <p>and the picasaweb urls look like:</p>
  
  <blockquote>
    <p>content://com.android.gallery3d.provider/picasa/item/5634890756050069570</p>
  </blockquote>
  
  <p>I attempted to use a query to get at the raw THUMB_DATA, using Thumbnails.queryMiniThumbnails(), with Thumbnails.THUMB_DATA in the projection array, but I got a "no such column" error.</p>
  
  <p>Is there another method for getting thumbnails that would work better? And will I have the same problem when I try and access the full image data?</p>