title: how to get unique ID of Video
body: <p>In my application I'm trying to display the list of videos in a list view in one <code>Activity</code> and I'm trying to display the thumbnail of selected video in another <code>Activity</code> for I got a code to display the thumbnail in <code>ImageView</code>,</p>
  
  <pre><code>iv = (ImageView)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.setScaleType(ScaleType.CENTER_CROP);
  iv.setImageBitmap(curThumb);
  </code></pre>
  
  <p>in this it displays the thumbnail only if I specify a integer value for <code>id</code> in </p>
  
  <pre><code>Bitmap curThumb = MediaStore.Video.Thumbnails.getThumbnail(crThumb, id, MediaStore.Video.Thumbnails.MICRO_KIND, options);
  </code></pre>
  
  <p>but what I want is to get the <code>id</code> value for selected video so that I can display it new <code>Activity</code> as I wish.</p>
  
  <p>Thanks.</p>