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

by dragonksn » Tue, 14 Apr 2009 09:56:38 GMT

Sponsored Links
 I've found the solution :

It is that I use the name of my sdcard image as my drive name, not the
name of the folder that stock the image. The path look like this : "/
sdcard/dcim/Camera/Songs/track1.mp3" as my image's name is

Anyway thanks for those who have viewed my post :)

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

by AndRaj » Tue, 14 Apr 2009 15:21:16 GMT


The file which present in the path /myandroid/dcim/Camera/Songs/ is in
Linux File System, the Android Music player (i.e Media player) can
only find the files inside the andorid file system (AFS). SO you have
to place that file inside the android file system, I think that;s what
you did by pushing the mp3 file to the sdcard and using that sdcard

I think now you got the clear idea about that.



Sponsored Links

Other Threads

1. Repost: +bonus - price dropped WTS: HTC Magic 32A

Memory saya upgrade jadi 4GB.
Harga saya drop menjadi 2.6 juta nett
including ongkir Jawa

As subject,
Kelengkapan fullset + Silikon Putih + Memory 1GB
kondisi ada lecet minim di dekat
speaker, yang lain mulus

harga 2.800.000 nett
posisi Jakarta Barat

alasan dijual istri nga mau pake -- dengan alasan udah cinta sama onyx nya .

yang mau nanya foto dan lain2
japri ke
judo.sab...@gmail.com <lutfi.hidayat.ramdhani%40gmail.com>


Judo Sabiro

"Indonesian Android Community [id-android]" 

2. HOWTO: run a particular CTS test with DDMS?

I'm running into a CTS exception and would like to take a close look
at the particular test/failure using DDMS. Is it possible to run CTS
with DDMS? Alternatively... I can install the CTS test .apk file...
but how do I then invoke the particular test?

Thank you,

unsubscribe: android-porting+unsubscr...@googlegroups.com

3. creating and opening sqlitedb on sdcard for api7

4. xml parsing

5. Google should clearly express their marketing strategy regarding Android Market

6. IllegalArgumentException when trying to run an OpenGL ES 2.0 application

7. Any Tree (Swing/JTree-like) widget for Android?