Re: [android-developers] Play Wav file with dynamic path

2011-01-28 Thread TreKing
On Fri, Jan 28, 2011 at 12:47 AM, Amit Mangal forum.amit.man...@gmail.comwrote: i want to decide at run time which file need to play. i have file name in string. how to get the path of the file and using which api i can play that file.

Re: [android-developers] Play Wav file with dynamic path

2011-01-28 Thread 刘小兵
haha 2011/1/28 Amit Mangal forum.amit.man...@gmail.com Hi Every One, I want to play wav file but dynamically means runtime i will decide which wav file will play. i have added all wav files in raw folder and written below code MediaPlayer player; MediaPlayer mp1 = new MediaPlayer();

[android-developers] Play Wav file with dynamic path

2011-01-27 Thread Amit Mangal
Hi Every One, I want to play wav file but dynamically means runtime i will decide which wav file will play. i have added all wav files in raw folder and written below code MediaPlayer player; MediaPlayer mp1 = new MediaPlayer(); //= MediaPlayer.create(getBaseContext(), R.raw.Test); But this