title: How to create Video Thumbnail from mp4 file which is in asset folder
body: <p>I have a problem with creating Thumbnail from mp4 file which is in assets folder. Try to enter different asset`s path but no effect. How can I fix it?</p>
  
  <p>That`s my piece of adapter code: </p>
  
  <pre><code>VideoEntry video = videos.get(position);
      holder.txtTitle.setText(video.getTitle());
      holder.imgIcon.setImageBitmap(ThumbnailUtils.createVideoThumbnail("file:///android_asset/videos/Core/Superman.mp4", Thumbnails.MICRO_KIND));
  </code></pre>
  
  <p>What is wrong?</p>
  
  <p><strong>Solution:</strong></p>
  
  <pre><code> AssetManager am = getAssets();
   InputStream ims = am.open("images/" + category + "/" + item.replace(" ", "_").replace(".mp4", ".png").toLowerCase());
   Drawable d = Drawable.createFromStream(ims, null);
   holder.imgIcon.setImageDrawable(d);
  </code></pre>