Its * mp.setDataSource(Environment.getExternalStorageDirectory()+"/vcgc.wav");*
Is there anything wrong in this line? On Mon, Jul 22, 2013 at 4:06 AM, RichardC <[email protected]>wrote: > What is really on this line? > > >> mp.setDataSource("path to file in sdcard"); > > On Sunday, July 21, 2013 5:23:59 PM UTC+1, Narendra Singh Rathore wrote: >> >> Hello, >> >> I am trying to play a music file, that exists in sdcard, as follows >> >> MediaPlayer mp = new MediaPlayer(this); >> mp.setDataSource("path to file in sdcard"); >> mp.prepare(); >> mp.start(); >> >> I have also specified the *Write External Storage *permission in my >> manifest.xml file. >> >> >> But......., I am getting the *error (-19,0)* on the line *mp.start();* >> >> >> I dont know what does it mean. >> >> >> -- > -- > 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 > --- > You received this message because you are subscribed to the Google Groups > "Android Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- 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 --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

