I have a string, \'songchoice\'. I want it to become a \'Uri\' so I can use with MediaPlayer.create(context, Uri)
\'songchoice\'
MediaPlayer.create(context, Uri)
How can I convert songchoice
Uri.parse(STRING);
See doc:
String: an RFC 2396-compliant, encoded URI
Url must be canonicalized before using, like this:
Uri.parse(Uri.decode(STRING));