简体   繁体   English

将短信发送到没有SIM卡的本地Android手机?

[英]Send SMS to local android phone without SIM card?

I am developing an android application. 我正在开发一个android应用程序。 One function I want to achieve is to send SMS message to the phone itself. 我要实现的功能之一是向手机本身发送短信。 I thought about two ways to do it: 我考虑了两种方法:

  1. Get the phone number of this phone and send a message to itself. 获取此电话的电话号码并向其发送消息。 This should be easy. 这应该很容易。
  2. If there is a internal representation of the phone itself that does not need a SIM card and real phone number, it would be more convenient. 如果电话本身具有内部表示形式,不需要SIM卡和真实电话号码,则将更加方便。

Does anyone know any information on the second method? 有人知道第二种方法的任何信息吗?

You can fake the intent that signals the phone it received a message. 您可以伪造向手机发送消息的意图。 It's been asked before, see here: can I send "SMS received intent"? 之前有人问过,请看这里: 我可以发送“收到短信的意图”吗?

The answer on that question in turn links here (example). 该问题的答案依次链接到此处 (示例)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM