I don't know how to use the path setDataSource(path) of MediaPlayer?

by rylance » Tue, 14 Apr 2009 16:01:22 GMT

Sponsored Links

If you have pushed the songs to the root of your sdcard then just use
setDataSourece("/sdcard/mySongName.mp3"), make sure you have set the path to
your image in Eclipse (if you are using Eclipse), make sure you are using
the correct run configuration a simple test would be from shell run adb
shell ls /sdcard (or use ddms file browser) then you can see if you have
successfully "installed" your image file.

The important thing to remember is that mp3's location on your pc is
irrelevant and that the phone plays songs from the "sdcard".


Other Threads

1. How can i get the email Notification into the screen?


Is it Possible to get the Email/message /MMS  Notification to show
that on the screen .
how can i do this is any body guide me regarding this .....

Thanks a lot in advance

2. Why can ContentResolver delete the video file on SD card?

Hi,when I use ContentResolver to delete one entry of video from the
media database(URI is MediaStore.Video.Media.EXTERNAL_CONTENT_URI),the
real video file will be deleted from the sdcard.But when I use
ContentResolver to delete one entry of mp3from the media database(URI
is MediaStore.Audio.Media.EXTERNAL_CONTENT_URI),the real mp3 file will
not be deleted.Who can tell me the reason?Thanks.

3. How to Speed up Animation

4. Mounting two separate partitions of an SD card

5. How to use custom control ?

6. compiling problem on g_ether.

7. Maps liberary as application liberary insted of shared lib