我可以发送"收到短信的意图"? [英] can I send "SMS received intent"?

查看:154
本文介绍了我可以发送"收到短信的意图"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

标题是显而易见的。我可以发送短信收到的意图在Android手机?换句话说,几乎接收自定义短信伪造一些短信接收器。

Title is obvious. Can I send "SMS received intent" on the android phone? In other words, virtually receive custom SMS to fake some SMS receivers.

推荐答案

您可以创建假的SMS(GMS型)像真正的消息,所以内置的渔获物。这里是我的回答

You can create fake SMS (GMS type) so built-in catch like real message. Here is my answer

 Intent intent = new Intent();
intent.setClassName("com.android.mms",
        "com.android.mms.transaction.SmsReceiverService");
intent.setAction("android.provider.Telephony.SMS_RECEIVED");
intent.putExtra("pdus", new Object[] { pdu });
intent.putExtra("format", "3gpp");
context.startService(intent);

这篇关于我可以发送"收到短信的意图"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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