Android 混淆了内容提供商contenturi和内容提供商授权标记

Android 混淆了内容提供商contenturi和内容提供商授权标记,android,android-contentprovider,Android,Android Contentprovider,从下面的例子 As an example of designing and coding content URI handling, consider a provider with the authority com.example.app.provider that recognizes the following content URIs pointing to tables: content://com.example.app.provider/table1: A table call

从下面的例子

As an example of designing and coding content URI handling, consider a provider with the authority com.example.app.provider that recognizes the following content URIs pointing to tables:

content://com.example.app.provider/table1: A table called table1.
content://com.example.app.provider/table2/dataset1: A table called dataset1.
content://com.example.app.provider/table2/dataset2: A table called dataset2.
content://com.example.app.provider/table3: A table called table3.
我在这里感到困惑。此示例是否意味着Table1Contentprovider、Table2ContentProvider、Table3ContentProvider指向同一授权url?据我所知,每个提供者都应该有唯一的权威url

或者这是否意味着,这里只有一个提供者可以处理所有3个表?如果是这种情况,在提供者的查询方法中,我们是否运行sql查询来获取与所有三个表相关的数据

下面是谷歌的例子

As an example of designing and coding content URI handling, consider a provider with the authority com.example.app.provider that recognizes the following content URIs pointing to tables:

content://com.example.app.provider/table1: A table called table1.
content://com.example.app.provider/table2/dataset1: A table called dataset1.
content://com.example.app.provider/table2/dataset2: A table called dataset2.
content://com.example.app.provider/table3: A table called table3.
实际上,它来自,而不是你链接的那个

此示例是否意味着Table1Contentprovider、Table2ContentProvider、Table3ContentProvider指向同一授权url

只有一个提供者,而不是三个(“考虑一个提供者”)

据我所知,每个提供者都应该有唯一的权威url

ContentProvider
可以通过
android:authorities
属性中的逗号分隔列表支持多个权限,尽管大多数时候它们只支持一个权限

或者这是否意味着,这里只有一个提供者可以处理所有3个表

如果是这种情况,在提供者的查询方法中,我们是否运行sql查询来获取与所有三个表相关的数据

在像
query()
这样的方法中,检查提供给您的
Uri
,并执行特定于提供的路径的操作。在前面的示例中,
query()
将对路径
table1
table2/dataset1
table2/dataset2
table3
执行不同的操作