1,Intents and Intent Filters 中<data> 的 说明

原文:

For example, in the following URI,

content://com.example.project:200/folder/subfolder/etc

the scheme is "content", the host is "com.example.project", the port is "200", and the path is "folder/subfolder/etc". The host and port together constitute the URI authority; if a host is not specified, the port is ignored.

这里的错误的地方在于path=”folder/subfolder/etc

而实际上path=”/folder/subfolder/etc” 在首位应该还有一个分隔符,少了这个分隔符,将无法匹配<data>

由android 2.2 测试实际方法得出:

android 官方文档中的一些错误收集

ps:有同样的错误的文章

Content Providers 中 Content URI Summary C 项的解释

相关文章:

  • 2021-08-26
  • 2022-12-23
  • 2021-12-10
  • 2021-09-14
  • 2021-10-15
猜你喜欢
  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
  • 2021-12-24
  • 2022-02-26
  • 2022-03-01
  • 2021-06-12
相关资源
相似解决方案