What is Uri.parse in android

后端 未结 4 1490
谎友^
谎友^ 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条回答
  •  灰色年华
    2021-02-02 15:03

    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.

提交回复
热议问题