android - ContentResolver 是否通知所有路径变体?

标签 android android-contentprovider android-contentresolver

我的内容 uri 有一个取决于内容的路径,例如content://controller/ContentItem/0/Favorites/RecentlyPlayed

我观察到,当我用这个 uri 插入一些东西时,所有其他具有较短路径的 uri 也会收到通知。

示例

我在以下位置插入内容:

content://controller/ContentItem/0/Favorites/RecentlyPlayed

同时通知:

content://controller/ContentItem/0/Favorites
content://controller/ContentItem/0
content://controller/ContentItem

这是通常的行为吗?

拉尔夫

最佳答案

关于android - ContentResolver 是否通知所有路径变体?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29603660/

相关文章:

android-imageview - 如何从 Firebase 存储检索图像并显示它?获取 "No content provider"错误

java - 如何将 getContentResolver().query 用于多个选择参数?

android - 在 Mac 上的真实设备上测试 Android 项目时,我的 URL localHost 是什么?

java - 如何在android中查找两个日期之间的日历事件

java - 如何通过完整性检查从 Dropbox 下载文件?

android - 相机在 Galaxy Nexus 中意外崩溃

android - 事件的最后编辑? Android 日历提供商

android - getSharedPreferences 中已弃用的 MODE_MULTI_PROCESS 的替代方案

android - 如何访问 Skype 应用程序的 main.db 以在示例 Android 应用程序中显示最近的选项卡日志?

android - 使用 ContentResolver 和 Regex 从特定文件夹获取音乐