代码改变世界

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

2011-09-18 12:05  youxiachai  阅读(668)  评论(0编辑  收藏  举报

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 测试实际方法得出:

image

ps:有同样的错误的文章

Content Providers 中 Content URI Summary C 项的解释