Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Playing audio repeatedly in Android

I want to play one music repeatedly until user presses the toggle button off..

I am not able to figure out how to do that, Please help

like image 700
Harshit Syal Avatar asked Jun 22 '12 10:06

Harshit Syal


1 Answers

use

MediaPlayer.setLooping(true);

for repeating sound using MediaPlayer.You can find more info about it in setLooping

like image 192
ρяσѕρєя K Avatar answered Oct 04 '22 17:10

ρяσѕρєя K