您的位置:首页 > 移动开发 > Android开发

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

2011-09-18 12:05 495 查看

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





ps:有同样的错误的文章

Content Providers 中 Content URI Summary C 项的解释

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: