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
"sdcard.img".

Anyway thanks for those who have viewed my post :)
dragonksn
--~--~---------~--~----~------------~-------~--~----~



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

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


 Hi,

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
path.

I think now you got the clear idea about that.

thanks
raj



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Other Threads

1. how is /proc/mtd generated

hello world
i would like to set the image max size (systemimage,userdataimage)

i have traces some code

it seems the size is specified in /proc/mtd

so i would like to ask how this file is generated

thanks
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: 

2. Is G2's kernel the same as G1?

If they are different, how to get G2's kernel(source code)?

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: 

3. Android emulator window small size

4. Service Binding Problems - ServiceConnection.onServiceConnected not being called

5. Service Binding Problems - ServiceConnection.onServiceConnected not being called

6. Gallery Child Count Problem

7. New moderation making this list very difficult to read.