display video thumbnails from sdcard in android
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4317665/how-to-get-thumbnail-for-video-in-my-sdcard-android-data-mypackage-files-folder">How to get thumbnail for video in my /sdcard/Android/data/mypackage/files folder ?</a>  </p>
</blockquote>



<p>Hello All</p>

<p>In my android application i am recording a video and saving this in sdcard.
Now what i require is display this video as thumbnails in my application.</p>

<p>I tried all solutions from <a href="http://stackoverflow.com/questions/1334694/android-is-it-possible-to-display-video-thumbnails">Android: Is it possible to display video thumbnails?</a>
The issue is i need the video from sdcard path and am not understanding as how to get it.</p>

<p>I tried below code</p>

<pre><code>int id = **"The Video's ID"** 
ImageView iv = (ImageView ) convertView.findViewById(R.id.imagePreview); 
ContentResolver crThumb = getContentResolver(); 
BitmapFactory.Options options=new BitmapFactory.Options(); 
options.inSampleSize = 1; 
Bitmap curThumb = MediaStore.Video.Thumbnails.getThumbnail(crThumb, id,MediaStore.Video.Thumbnails.MICRO_KIND, options); 
iv.setImageBitmap(curThumb);
</code></pre>

<p>But could not understand as how to get the video from sdcard path.</p>

<p>Please share your valuable suggestions</p>

<p>Thanks in advance :)</p>
