I am deleting an SMS from the inbox but I want to know: How can I delete it before it reaches the inbox?
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.
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.
There is no way to unsend a text message or iMessage unless you cancel the message before it was sent.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With