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
//... import android.net.Uri; //... Uri myUri = Uri.parse("http://stackoverflow.com")
1.4m articles
1.4m replys
5 comments
57.0k users