If you have UMS enabled, you won't be able to play the file. The G1 O/ S cannot access the SD card at the same time as the host system. Disconnect the cable, or don't enable UMS when you connect USB.
On Jan 18, 1:22 pm, robotissues <[email protected]> wrote: > I am trying to create a very simple mp3 player with one button that > plays one song. I found misc code here and there as a start. I am > running the application via Eclipse onto my G1 which is attached via > USB. The application runs fine on the phone, screen loads, button > click event gets fired, etc ... the problem is that when mp.prepare() > is called, it throws an error ... here is the code: > > mp.setDataSource("/sdcard/music/lonelydays.mp3"); > mp.prepare(); > > I copied a file to /music/lonelydays.mp3 on the sd card. > > Looking for feedback on what I am missing. > > Thank You. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

