Android – Media Player Looping : Android

androidandroid-mediaplayer

I am having 3 secs of mp3 file. I want to play that mp3 file continuously still the user click pause button. Is there any method to loop the single file and play it again again till user pauses it.

Best Solution

mMediaPlayer.setLooping(true);