I need to run many small sounds while the activity is running.
Some files plays every fixed time interval (Ex. 5 seconds)
Some files will be played in a sequence when one finishes the next starts (ex. sound1, sound2, sound3) when the screen is touched.
Total sounds are around 35 short mp3 files (max 3 seconds).
What is the best way to implement this?
Thanks
SoundPool is commonly used to play multiple short sounds. You could load up all your sounds in onCreate(), storing their positions in a HashMap.
Creating SoundPool
Then when you need to play the sound, simple call playSound() with the constant value of your sound.