tags:

views:

40

answers:

1

Hello, I want to play a number of sound files in raw directory one after another in android. How to do that? Please anyone provide me an example. Thanks in advance.

+1  A: 

Look into MediaPlayer class documentation. You will all information there.

Want more, get the Android Media Player code

the100rabh
How to play a list of files?I want to make it a variable.eg:mp = MediaPlayer.create(geetaact.this, R.raw.first);//first should change by taking value from /raw folder.
Antony
use setDataSource function to play another file.
the100rabh