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