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?