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 项的解释
|
本文转自 liam2199 博客,原文链接:http://blog.51cto.com/youxilua/773123 如需转载请自行联系原作者