how to send a SMS to the emulator from a sender that is a string

风流意气都作罢 提交于 2019-12-06 05:00:39

问题


I often recieve SMS in my phone that have some string instead of a number in the sender, for example a company name. I would like to test some app that reacts to those SMS, but how can I send such a SMS to the emulator? If I run the emulator and do the following:

telnet localhost 5554 sms send MyBank this is a test sms

I get an error saying the number is invalid.

Is there a way to test this in the emulator?


回答1:


You can use the SDK tools. In the emulator control tab on the debug perspective(assuming you are using eclipse) you can push a SMS to your phone.



来源:https://stackoverflow.com/questions/6417437/how-to-send-a-sms-to-the-emulator-from-a-sender-that-is-a-string

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!