Answer the question
In order to leave comments, you need to log in
Checking for audio completion in Android?
First off, I'm new to Android. I need to make it so that after the end of the audio track, a text is displayed that the audio track has ended. I figured out playback using SoundPool, but I did not find in the documentation how to find out whether the audio stream has ended or not. So I want to know if there is any function or it can be implemented using another class. Thanks in advance)
Answer the question
In order to leave comments, you need to log in
As far as I understand, no, you can't find out. Judging by the API description, this craft is needed to play some short sounds (perhaps one after the other, using prioritization).
You can use MediaPlayer for this. It's definitely possible there .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question