What is Uri.parse in android

后端 未结 4 1478
谎友^
谎友^ 2021-02-02 14:32

What is the function of Uri and how is Uri.parse() used?

For example :

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

an

4条回答
  •  -上瘾入骨i
    2021-02-02 14:53

    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 .

提交回复
热议问题