Adham Adham - 4 months ago 16
Android Question

What is Uri.parse in android

What is the function of

Uri
?

for example :

Uri.parse("tel:(+49)12345789"));


and

Uri.parse("geo:50.123,7.1434?z=19"));


what are
tel
and
geo
refers to ?

Answer

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 new Uri object from a properly formated String. See here for more information about ContentProviders.

Comments