title: Set default image gallery on kotlin
body: <p><br>I am trying to implement gallery functionality in kotlin with android studio using default component. The goal is to click a button and open the desired path as a common Intent .
  I can't understand how it is possible that the emulator only opens recent images for me instead of the path I specified on the file provider.
  <a href="https://i.stack.imgur.com/0nRtC.png" rel="nofollow noreferrer">enter image description here</a>
  The part of code that I'm using is :</p>
  <pre><code> fun dispatcherGalleryImage(){
      try {
  
          val uri: Uri = Uri.parse(Environment.getExternalStoragePublicDirectory(requireActivity().getExternalFilesDir(Environment.DIRECTORY_PICTURES).toString().replace(&quot;/storage/emulated/0&quot;, &quot;&quot;)).path.toString())
          Log.info(uri.toString())
          val intent=Intent(Intent.ACTION_GET_CONTENT)
          intent.type =&quot;image/*&quot;
          startActivityForResult(intent, TAKE_GALLERY_IMAGE)
      }catch (ex: Exception){
          Log.info(ex.toString())
      }
  }
  </code></pre>