观察 Android 浏览器中添加/更新/删除的书签
我正在使用 Content-Observer 来观察 Android-Boroswers browser.db,它存储有关历史记录和浏览器的信息。书签。我的要求是,只有在添加/更新/删除和添加书签时我才想收到通知。更新我的书签列表。但即使新页面加载到浏览器中,我的侦听器也会被解雇(因为这是历史记录)。有什么办法解决这个问题吗?或观察单个列的变化。 我不想在每次触发事件时都不必要地更新我的列表。 提前致谢。
I am using Content-Observer to observe the Android-Boroswers browser.db which stores information about both history & bookmarks. My requirement is that i want to get notified only if a BOOKMARK is added/updated/removed & update my bookmarks list. But my listener gets fired even if a new page loads into the browser ( because this comes under history). Any way to resolve this ? or to observe changes for a single column.
I dont want to unnecesary update my list on every event fired.
Thanx in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
添加到您的
WHERE
子句中,检查是否BOOKMARK
列是1
。Add to your
WHERE
clause a check to see if theBOOKMARK
column is1
.