title: how can I show a video thumbnail from a video path?
body: <p>I want to show a video thumbnail in an ImageView from a video path on storage. Is there a function that takes a video path and returns a bitmap of a thumbnail? I get the video path by this code:</p>
  
  <pre><code>public ArrayList&lt;String&gt; getAllMedia() {
    HashSet&lt;String&gt; videoItemHashSet = new HashSet&lt;&gt;();
    String[] projection = {MediaStore.Video.VideoColumns.DATA, MediaStore.Video.Media.DISPLAY_NAME};
    Cursor cursor = getContext().getContentResolver().query(MediaStore.Video.Media.EXTERNAL_CONTENT_URI, projection, null, null, null);
    try {
      cursor.moveToFirst();
      do {
        videoItemHashSet.add((cursor.getString(cursor.getColumnIndexOrThrow(MediaStore.Video.Media.DATA))));
      } while(cursor.moveToNext());
      cursor.close();
    } catch(Exception e) {
      e.printStackTrace();
    }
    ArrayList&lt;String&gt; downloadedList = new ArrayList&lt;&gt;(videoItemHashSet);
    return downloadedList;
  }
  </code></pre>