Callback when another ContentProvider's data changes
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开发者_JAVA百科 polling and comparing all the time?
Thanks
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.
加载中,请稍侯......
精彩评论