The correct way to play short sounds Android?

You can use SoundPool. It fits what you want to do perfectly.

You’ll just need a way to store the sound effect IDs corresponding to each image (or button).

Perhaps extend Button to store associated sound effect ID. And use a common SoundPool to play the sound effect associated to the id when the button is touched.

You can read more about SoundPool here.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)