Broadcast on contact add/change?

后端 未结 1 1468
隐瞒了意图╮
隐瞒了意图╮ 2020-11-30 08:25

Is there any standard broadcast intent that I can register a BroadcastReceiver for that gets triggered whenever a contact is added or changed? I\'ve been lookin

相关标签:
1条回答
  • 2020-11-30 08:44

    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 讨论(0)
提交回复
热议问题