开发者

Broadcast on contact add/change?

开发者 https://www.devze.com 2023-02-28 04:22 出处:网络
Is there any standar开发者_Go百科d broadcast intent that I can register a BroadcastReceiver for that gets triggered whenever a contact is added or changed? I\'ve been looking through the docs for a wh

Is there any standar开发者_Go百科d broadcast intent that I can register a BroadcastReceiver for that gets triggered whenever a contact is added or changed? I've been looking through the docs for a while now but haven't found anything. Maybe it's hidden somewhere deep and one of you guys knows where.


Here I go answering my own question (if anyone has a better answer, don't be shy).

There's no broadcast when a contact is added/changed. However, when you look up your contacts in the RawContacts table you have a DIRTY column which is 1 if the contact was changed since the last sync, which is pretty much what I was looking for.

0

精彩评论

暂无评论...
验证码 换一张
取 消