What is the function of Uri
and how is Uri.parse()
used?
For example :
Uri.parse("tel:(+49)12345789"));
and
Uri.parse("geo:50.123,7.1434?z=19"));
What dotel
and geo
refer to ?
What is the function of Uri
and how is Uri.parse()
used?
For example :
Uri.parse("tel:(+49)12345789"));
and
Uri.parse("geo:50.123,7.1434?z=19"));
What dotel
and geo
refer to ?
In case you want specific answer about the nature of
uriString
that is an argument here,From,
http://developer.android.com/reference/android/net/Uri.html#parse%28java.lang.String%29
And About RFC 2396 standard,
From,
http://www.faqs.org/rfcs/rfc2396.html
And,
Here are some in use:
A Uri object is usually used to tell a ContentProvider what we want to access by reference. It is an immutable one-to-one mapping to a resource or data. The method
Uri.parse
creates a newUri
object from a properly formatedString
. See here for more information aboutContentProviders
.Uniform Resource Identifier (URI) is a string of characters used to identify a resource.A URI identifies a resource either by location, or a name, or both. Such identification enables interaction with representations of the resource over a network, typically the World Wide Web, using specific protocols. ex- a URL is a URI. * What is Uri.parse()* it does not 'parse'but it actually creates a Uri object, using the string passed to it and the string is hidden from the user. Now the question is what does the Uri object do?? So the URI object is an immutable reference to a URI which we can use to refer to resources .