haha....

2011/1/28 Amit Mangal <[email protected]>

> 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 code playing only Test file.
> 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.
>
> thank you
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
技术打造未来,营销开发世界.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to