I want to play one music several times until the user presses the switch button.
I can’t figure out how to do this, please help
use
MediaPlayer.setLooping(true);
to repeat the sound using MediaPlayer. More information on this can be found in setLooping.