Hi
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".
On Mon, Apr 13, 2009 at 9:48 AM, dragonksn <[email protected]> wrote:
>
> Dear all,
> I'm a new comer to Android. I want to play a music file located in my
> SDCARD image by using my own code. But all the path I have tried with
> did not work. The file is located in /myandroid/dcim/Camera/Songs/
> track1.mp3 (This seen when I mount the drive to local machine). But
> the song can be played by music player of Android.
>
> Can anyone help me with this? I'm very curious with this..
>
> Thanks in advance :)
> dragonksn
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---