Contacts ContentObserver called randomly

随声附和 提交于 2019-12-04 10:59:38

ok, since no one seems to have an answer to this question, here is what i've done:

when creating the observer, i load all the contacts into a cache. then, on every onChange() event, i load the contacts again and compare them to the cached ones to see if there is a difference or not.

not the most elegant solution, but it works at least...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!