我们可以删除Android的短信之前到达收件箱? [英] Can we delete an SMS in Android before it reaches the inbox?

查看:243
本文介绍了我们可以删除Android的短信之前到达收件箱?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我删除从收件箱中的短信,但我想知道:我怎样才能删除它之前到达收件箱

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

推荐答案

是的。

尽管出现了一些负面的反应,对这个问题,有正当用途短信拦截。例如:自动电话号码验证,服务,通过手机短信供应(尽管通常这应该是与数据短信完成),或它通过以显示他们在一个不错的Andr​​oid处理特殊格式的邮件,否则改善用户体验的应用特异性UI。

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.

由于安卓1.6的,收到的短信广播( android.provider.Telephony.SMS_RECEIVED )将被作为一个的ordered~~V广播—这意味着你可以告诉哪些组件应该首先接收广播系统。

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.

在这一点上,你可以<一href="http://developer.android.com/reference/android/content/BroadcastReceiver.html#abortBroadcast%28%29">cancel广播,$ P $从pventing它传播到其他应用程序。

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

更新(2013年10月)::当Android 4.4系统的到来,它会更改短信的API可能会影响一个应用程序的影响SMS传送能力
看看这个Android开发者博客张贴一些更多的信息:
<一href="http://android-developers.blogspot.com/2013/10/getting-your-sms-apps-ready-for-kitkat.html">http://android-developers.blogspot.com/2013/10/getting-your-sms-apps-ready-for-kitkat.html

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

这篇关于我们可以删除Android的短信之前到达收件箱?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆