Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we delete an SMS in Android before it reaches the inbox?

Tags:

android

sms

I am deleting an SMS from the inbox but I want to know: How can I delete it before it reaches the inbox?

like image 226
umakant Avatar asked Nov 16 '09 11:11

umakant


People also ask

Can I delete a sent text message Android?

Technically, once a text message is successfully sent out, you can't unsend the message. Unfortunately, the Android operating system does not provide a recall option for that.

How do you delete a pending text message?

While the message is "sending" press and hold the comment/text massage. A menu option should appear giving you the option to cancel message before it sends. Airplane mode is a good one that'll work too.

Can you Unsend an SMS?

There is no way to unsend a text message or iMessage unless you cancel the message before it was sent.


1 Answers

Yes.

Despite some negative reactions to this question, there are legitimate uses for SMS interception. For example: automating phone number verification, services which are provisioned via SMS (though generally this should be done with data SMS), or for applications which otherwise improve the user experience by processing specially-formatted messages in order to show them in a nice Android-specific UI.

As of Android 1.6, incoming SMS message broadcasts (android.provider.Telephony.SMS_RECEIVED) are delivered as an "ordered broadcast" — meaning that you can tell the system which components should receive the broadcast first.

If you define an android:priority attribute on your SMS-listening <intent-filter>, you will then receive the notification before the native SMS application.

At this point, you can cancel the broadcast, preventing it from being propagated to other apps.


Update (October 2013): When Android 4.4 arrives, it will make changes to the SMS APIs which may affect an app's ability to influence SMS delivery.
Check out this Android Developers blog post for some more info:
http://android-developers.blogspot.com/2013/10/getting-your-sms-apps-ready-for-kitkat.html

like image 190
Christopher Orr Avatar answered Nov 16 '22 00:11

Christopher Orr