0

Maybe anybody faced with this issue.
I use SoundPool for playing sounds in my app.
After playing the sound I need to do further action. But how can I determine that the sound has stoped?
All the sounds in the app have a different length, so I can not count the time. I need a different approach.
Thank you.

dimetil
  • 3,851
  • 2
  • 29
  • 47
  • http://stackoverflow.com/questions/4436055/android-soundpool-get-notified-when-end-of-played – zpea May 12 '12 at 15:49

1 Answers1

0

soundpool's purpose is to load and play simple small sounds without the need to monitor them.

what you probably need is MediaPlayer and setOnCompletionListener() :

android developer
  • 114,585
  • 152
  • 739
  • 1,270