Meaning of android.content.UriMatcher

前端 未结 3 988
孤街浪徒
孤街浪徒 2021-02-19 01:08

What is Uri Matcher in android.content.UriMatcher

How to use it? Can someone please explain meaning of following three line of code?

  uriMa         


        
3条回答
  •  情深已故
    2021-02-19 01:47

    I found the following videos to be useful:

    URI Basics

    URI Matcher

    In essence, what you are trying to do is, have an ID or a number associated to different URIs. When you use addUri, a code/number/ID gets created against the URI. When you request a match(), the corresponding code is returned.

提交回复
热议问题