hi april..
can u plz help me to post the code of the second method..
thx..
On Aug 18, 3:07 am, april <[EMAIL PROTECTED]> wrote:
> Thank you for the help. I tried the second method. It works.
>
> However, I change the audio source to local file, I got IOException. I
> have checked that the file is located correctly in the phone /data/
> data/myapplication/files/piano.mp3.
>
> What is the problem? Can android play mp3 from local files?
>
> private void playAudio()
> {
> try
> {
> mp=new MediaPlayer();
> mp.setDataSource("piano.mp3");
> mp.reset();
> mp.prepare();
> mp.start();
> }
> catch(Exception e)
> {
> String a= e.toString();
> String b =a+"sasa";
> }
> }
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---