0

let's say I want to know when a contact on the device gets deleted... Or an SMS message, or something from the call log. Is there a way to receive a callback or a broadcast for this kind of event, without polling and comparing all the time?

Thanks

SirKnigget
  • 3,614
  • 2
  • 28
  • 61

1 Answers1

0

You need to listen for the appropriate broadcast Intent such as android.provider.Telephony.SMS_RECEIVED for SMS.

This other question has some code for doing so.

Community
  • 1
  • 1
Rob
  • 4,733
  • 3
  • 32
  • 29