title: Audio playback using Android's own player
body: <p>I would like to know how I can android's own player is activated at the time of pressing a button, I have tried but when I press the button the application is destroyed.</p>
  <p>This is the location of my mp3 file (Internal Storage / Download / Audio.mp3)</p>
  <p>alsoI have added this in the manifest:</p>
  <pre><code>&lt;android:name=&quot;android.permission.READ_EXTERNAL_STORAGE&quot;/&gt;
  </code></pre>
  <p>My code</p>
  <pre><code>button1.setOnClickListener {
             button1.setOnClickListener {
  
          val audioDirPath = File(getFilesDir(), &quot;Download&quot;)
          audioDirPath.mkdir()
          val file = File(audioDirPath, &quot;audionline.mp3&quot;)
          val contentUri = getUriForFile(this, &quot;com.example.fileprovider&quot;, file)
          val intent = Intent(Intent.ACTION_VIEW)
          intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
          startActivity(intent)
  
      }
          }
  </code></pre>