How do I know if a sound has finished playing?
I want to play 2 sounds but I want one sound to play and then wait until the 1st sound is done before the 2nd starts.
Also, if I wanted to do something else when the sound is finished like show he next view in a view flipper, could I do that?
Right now I'm using SoundPool to play my sounds.
onCompletion. Called when the end of a media source is reached during playback.
Use the MediaPlayer class and an OnCompletionListener
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With