Harshit Syal
Harshit Syal

Reputation: 659

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

Upvotes: 7

Views: 2413

Answers (1)

ρяσѕρєя K
ρяσѕρєя K

Reputation: 132992

use

MediaPlayer.setLooping(true);

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

Upvotes: 8

Related Questions