title: How to use MediaStore.Images.Thumbnails.query?
body: <p>See <a href="http://developer.android.com/reference/android/provider/MediaStore.Images.Thumbnails.html" rel="nofollow">http://developer.android.com/reference/android/provider/MediaStore.Images.Thumbnails.html</a></p>
  
  <p>I am trying last three methods to get thumbnail from Uri.</p>
  
  <p>But Cursor remains null. Please help how to use it? Basically I want to get Micro sized thumbnail (generated by android) from the image stored on sdcard.</p>
  
  <pre><code>Cursor cursor = MediaStore.Images.Thumbnails.query(getContentResolver(),
          Uri.parse("file://" + "/mnt/sdcard/DCIM/Camera/IMG_20110722_101000.jpg"), null);
  if (cursor != null) {
      Log.d("sf","Sfsfs");
  }
  </code></pre>
  
  <p>Also tried following one:</p>
  
  <pre><code>Cursor cursor = MediaStore.Images.Thumbnails.queryMiniThumbnails(getContentResolver(),
          Uri.parse("file://" + "/mnt/sdcard/DCIM/Camera/IMG_20110722_101000.jpg"), MediaStore.Images.Thumbnails.MICRO_KIND, null);
  if (cursor != null) {
      Log.d("sf","Sfsfs");
  }
  </code></pre>
  
  <p>I am not trying any method where it requires <code>long origId</code> as a parameter, as I have only path not ID.</p>