play sound android studio kotlin
snippet in kotlin

play sound android studio kotlin

user4074

//make a audio file in the res/raw directory
mediaPlayer = MediaPlayer.create(this, R.raw.FILE_NAME)
mediaPlayer?.start()