One way to do it is to run a web server on your host machine and serve the mp3 via http. You could then call the setDataSource() method of the MediaPlayer with a URL pointing to the mp3 on the host. Note: you'll need to use the IP address of your host machine and not localhost. Finally, you will need to add permissions to your AndroidManifest.xml file to allow your application access to internet:
<uses-permission android:name="android.permission. INTERNET" /> sayed On Dec 31, 4:01 am, sal <[email protected]> wrote: > Hi All, > > Is there any procedure to play .mp3 file stored in a filesystem of > host machine (windows XP) without getting into file system of > emulator. > > I know its least useful scenario but i am just curious to know > whaether MediaPlayer class supports it or not ? > > Thanks > Sal --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

