Kotlin: Mediaplayer: Couldn't open content://com.android.externalstorage.: java.lang.SecurityException: Permission Denial: reading com.android.ext
Not able to play a song stored as a Uri in SQLite,
The file selected by below function is playing well
private fun selectMusicFile() {
val intent = Intent()
intent.type = "audio/*"
intent.action = Intent.ACTION_GET_CONTENT
startActivityForResult(Intent.createChooser(intent, "Select Audio"), 123)
}
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data)
if (requestCode == 123) {
if...