Answers for "add rsw tesource to arrayList in kotlin"

0

add rsw tesource to arrayList in kotlin

var sound: Uri = Uri.parse("android.resource://" + getPackageName() + "/" + R.raw.danger_alarm_sound)

val mediaPlayer: MediaPlayer
            mediaPlayer =
                MediaPlayer.create(
                    applicationContext,
                    sound
                )
            mediaPlayer.start()
Posted by: Guest on November-15-2020

Browse Popular Code Answers by Language