[android-developers] Re: To Play .mp3 from host machine filesystem
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 suhailb...@gmail.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] Re: To Play .mp3 from host machine filesystem
You are running a virtual Linux system on your workstation. It only has access to the file systems that are mounted, which include the fixed images required to boot and run the device and and an optional virtual SD card image. If you are really ambitious, you could modify the emulator code and system code to allow mounting your workstation file system. On Dec 31, 1:01 am, sal suhailb...@gmail.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---