any listener for delete sms in android

喜欢而已 提交于 2019-12-25 03:45:18

问题


in my application i would like to get sms information while is deleting from inbox by user. For this is there any listener or else? any one of you plz help me. is there any aletrnate.... ThanQ.


回答1:


You will need to use a BroadcastReciever to listen for the "android.provider.Telephony.SMS_RECEIVED" intent. This page has a nice example of how to get it set up.

Edit: I don't think(But I am not absolutely sure) there is any way to get notified when a message is about to get deleted. Why does your application need access to the users SMS messages that they are deleting?



来源:https://stackoverflow.com/questions/5025372/any-listener-for-delete-sms-in-android

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!