code: public static Bitmap getThumbnail(Context context, Uri uri) {
          return getThumbnail(context, uri, getMimeType(context, uri));
      }
docs: Attempt to retrieve the thumbnail of given Uri from the MediaStore. This
  should not be called on the UI thread.
  
  @param context
  @param uri
  @return
  @author paulburke