I will leave it as a memo.
Uri → String
This can be done normally by using the toString ()
method.
Uri uri;
String stringUri;
stringUri = uri.toString();
String → Uri
This can be achieved by using the ʻUri.parse () `method.
Uri uri;
String stringUri;
uri = Uri.parse(stringUri);
If it helps someone.
Recommended Posts