Android URI 中 authority 和 scheme 的区别
The difference between authority and scheme in an Android URI
Android中的URI权限和URI方案有什么区别?
我总是在 URI 中使用方案来指示数据库 table,如下所示:
content://scheme
我在我的应用程序中使用自定义搜索建议,我阅读了有关搜索自定义建议的文档,其中权限使用而不是方案来引用数据库,如下所示:
content://your.authority/opthional.suggest.path/SUGGEST_URI_PATH_QUERY
上面的my.authority
是什么?这个和scheme有什么区别?
i always use scheme in uri to indicate database table as follow content://scheme
scheme
不是方案。 content
是 the rules for URI values 之后的方案。您所拥有的 scheme
是 Android content://
Uri
中的权限。
what is my.authoruty above ?
是权限。它需要在清单中 <provider>
的 android:authorities
属性中,Android 使用它来为任何 Uri
找到一个真正的 ContentProvider
。
what is the difference between this and scheme ?
它们是一样的,因为你误用了术语 "scheme"。
Android中的URI权限和URI方案有什么区别? 我总是在 URI 中使用方案来指示数据库 table,如下所示:
content://scheme
我在我的应用程序中使用自定义搜索建议,我阅读了有关搜索自定义建议的文档,其中权限使用而不是方案来引用数据库,如下所示:
content://your.authority/opthional.suggest.path/SUGGEST_URI_PATH_QUERY
上面的my.authority
是什么?这个和scheme有什么区别?
i always use scheme in uri to indicate database table as follow
content://scheme
scheme
不是方案。 content
是 the rules for URI values 之后的方案。您所拥有的 scheme
是 Android content://
Uri
中的权限。
what is my.authoruty above ?
是权限。它需要在清单中 <provider>
的 android:authorities
属性中,Android 使用它来为任何 Uri
找到一个真正的 ContentProvider
。
what is the difference between this and scheme ?
它们是一样的,因为你误用了术语 "scheme"。