Repeat audio in Android

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

+5
source share
1 answer

use

MediaPlayer.setLooping(true);

to repeat the sound using MediaPlayer. More information on this can be found in setLooping.

+6
source

All Articles