开发者

Callback when another ContentProvider's data changes

开发者 https://www.devze.com 2023-03-19 18:19 出处:网络
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.

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.

0

精彩评论

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