title: The saved video is not shown in the system gallery app
body: <p>After creating video and save it, I'm trying to make it visible in the gallery app by scanning the video path using the code below : </p>
  
  <p>Path of saved video : </p>
  
  <pre><code> public String getPath() {
          String videoFileName = System.currentTimeMillis() + ".mp4";
          File storageDir = new File(
                  Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES)
                          + "/MyFolderApp");
          boolean success = true;
          if (!storageDir.exists()) {
              success = storageDir.mkdirs();
          }
          if (success) {
              File videoFile = new File(storageDir, videoFileName);
              savedVideoPath = videoFile.getAbsolutePath();
          }
          return savedVideoPath;
      }
  </code></pre>
  
  <p>Scan path : </p>
  
  <pre><code>  private void galleryScanner(String path) {
          Intent mediaScanIntent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);
          File f = new File(path);
          Uri contentUri = Uri.fromFile(f);
          mediaScanIntent.setData(contentUri);
          sendBroadcast(mediaScanIntent);
      }
  </code></pre>
  
  <p>After saving the video, I call the scan method like this: <code>galleryAddPic(getPath());</code></p>
  
  <p><strong>Weird behavior :</strong> If I open the <strong>Google Photos</strong> app and go to <strong>Album > MyFolderApp</strong>, I could see the saved video there, also when I exit the Google Photos app and return to Gallery System, the saved video shown normally</p>