On Thu, Jun 25, 2009 at 4:42 AM, manoj <[email protected]> wrote:
> > Hi friends, > > I have written a small media player app which plays media files stored > in sdcard. > > For audio files I got the following exception: > > E/MediaPlayerService( 35): Couldn't open fd for > content://media/KeypressReturn.ogg/audio/media (...) > W/VideoView( 3813): Unable to open content: > content://media/664771_dl_qcif.mp4/video/media (...) > Can any one please help me solve this problem. Those media content URIs are bogus. Since you seem to have gotten the names of the files already somehow, just use setDataSource(String) to specify the paths to the files. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en -~----------~----~----~----~------~----~------~--~---

