How can I convert a String to a Uri in Java (Android)? i.e.:
String myUrl = \"http://stackoverflow.com\";
myUri = ???;
You can use the parse static method from Uri
parse
Uri
Uri myUri = Uri.parse("http://stackoverflow.com")