开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜