views:

152

answers:

1

I have a track I want to play 'megadeth', i'm calling it by...

    final MediaPlayer mp = MediaPlayer.create(this, R.raw.megadeth);

And playing it by using 'mp.start'

And I just want to know, how can I get this audio mp3 to loop? -Can you give me the code?

Thanks alot,

+2  A: 

its simple, look into this api http://developer.android.com/reference/android/media/MediaPlayer.html#setLooping(boolean)

the100rabh
Working thanks =]
James Rattray
please mark the answer if it solved ur query. It is helpful for others too
the100rabh