I have a string, 'songchoice' I want it to become a 'Uri' so I can use with MediaPlayer.create(context, Uri)
Can someone help me to convert songchoice to the Uri?
Thanks,
James
I have a string, 'songchoice' I want it to become a 'Uri' so I can use with MediaPlayer.create(context, Uri)
Can someone help me to convert songchoice to the Uri?
Thanks,
James
Uri myUri = Uri.parse("http://www.google.com");
Here's the doc http://developer.android.com/reference/android/net/Uri.html#parse%28java.lang.String%29