What is Uri.parse in android

后端 未结 4 1479
谎友^
谎友^ 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 14:47

    The "tel:" and "geo:" are called Data schemes in android it tells the intent what application are you looking for

    eg- if you use tel: it will tell the android system that you are looking for callling applicaion and it will open all the calling applications.If you use geo: it will tell androdid system that you are looking for a map or location app eg the google maps

提交回复
热议问题