I make my device as admin after installation.
Media player is not playing any audio when application is in LockTask (KIOSK Mode)
I have written a handle to enable/disable KIOSK MODE
I am trying to play a simple audio file from res/raw. Volume of the device is set to high.
mediaPlayer = MediaPlayer.create(context, R.raw.panic_ring)
mediaPlayer?.start()
mediaPlayer?.isLooping = true
But still I cannot hear anything from device
If I disable KIOSK mode by calling enableKioskMode(false)
then I can hear sound just fine.