0

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.

VenkaReddy
  • 2,871
  • 2
  • 27
  • 29
  • **Possible Duplicate of [Can we delete an SMS in Android before it reaches the inbox?](http://stackoverflow.com/questions/1741628/can-we-delete-an-sms-in-android-before-it-reaches-the-inbox)** – Vikas Patidar Feb 17 '11 at 05:30
  • my requirement is while deleting any SMS from inbox i need to get that SMS. – VenkaReddy Feb 17 '11 at 05:34
  • this might be helpful: http://stackoverflow.com/questions/419184/how-to-delete-an-sms-from-the-inbox-in-android-programmatically – Vikas Patidar Feb 17 '11 at 05:40
  • @VenkaReddy hi have you found any solution for this.Please do share as I am stucked in same situaltion – Sneha Bansal Apr 03 '15 at 05:02

1 Answers1

0

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?

FoamyGuy
  • 46,603
  • 18
  • 125
  • 156