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. Exchange server usage and settings

Hello all,

Is there any way to log how the Exchange server is being used on the device?

What can be obtained about Corporate email traffic and usage?

Is it possible to change settings programatically for those accounts?

Say, a domain is changed or a server is changed. Can I do those settings


2. Handling Orientation Changes that occur in another Activity

I have not defined these settings. I just want the WebView to fill the
entire screen. Until the camera is launched, the default layout and scaling
settings work just fine.

It looks like somewhere the Scale setting gets changed from 1.5 to 1.0 after
I call WebView.restoreState(). I don't want to hard code anything so I am
not sure of the best way to change it back.


3. Australian Paid Developers

4. Android 2.0 eclair with non-standard panel 1024x600

5. Need help about porting android 2.1 to s3c6410

6. How to create kind of admob banner or scrolling text?

7. desire brenang