Issue
How can I convert a String to a Uri in Java (Android)? i.e.:
String myUrl = "http://stackoverflow.com";
myUri = ???;
Solution
You can use the parse
static method from Uri
//...
import android.net.Uri;
//...
Uri myUri = Uri.parse("http://stackoverflow.com")
Answered By - ccheneson
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.