是否有可能接受她从Android模拟器短信? [英] Is it possible to recieve an SMS from Android emulator?
问题描述
我不知道是否有一种方法可以接收来自Android模拟器短信,或许是一个TCP端口。 我知道这是可以通过仿真器端口上打开一个TCP套接字,并使用发送短信命令发送短信到模拟器,但它也可以接收短信这种方式?
我会详细说明 - 我有一个Tomcat服务器上运行的Java应用程序。我也有在同一台机器上运行的Android模拟器。我可以从应用程序中使用短信发送命令发送短信到模拟器。可我也以某种方式接收短信?
朋友,普通的参考下面的博客给这个以下的答案
只需使用连接仿真器 telnet和那里我们可以模拟 短信。请参见下面的步骤模拟 短信:
第1步:启动模拟器,你自由 给选项,例如只 在shell提示符下输入模拟器 打开一个新的外壳和类型: ADB设备 知道所使用的端口仿真器。第一控制台 在给定的运行模拟器实例 该机采用5554端口,命令 以上只是为了确保该端口 例如使用。
第2步:使用连接到控制台 像telnet命令:
远程登录本地主机5554之后,你有 来找你可以模拟短信壳 使用命令:
手机短信发送< phonesender> <的TextMessage>
有关更多信息,请参阅此链接
如果你从仿真器发送短信,看到这样的<一个href="http://mobiforge.com/developing/story/sms-messaging-android">http://mobiforge.com/developing/story/sms-messaging-android
I was wondering if there is a way to receive an SMS from Android emulator, perhaps on a TCP port. I know it's possible to send SMS to emulator by opening a TCP socket on the emulator port and using "send sms" command, but is it also possible to receive an SMS this way?
I'll elaborate - I have a java application running on a Tomcat server. I also have an Android emulator running on the same machine. I can send SMS messages from the application to the emulator using the "sms send" command. Can I also receive SMS messages in some way?
Friend , Common refer this following answer given in the following blog
Just connect the emulator using telnet and there we can emulate the SMS. See below the step to emulate the SMS:
Step 1: Start the emulator, you free to give the option, For example just type emulator on shell prompt Open a new shell and type : adb devices to know the port emulator used. The console of the first emulator instance running on a given machine uses 5554 port, The command above just to make sure which port the instance used.
Step 2: Connect to the console using telnet command like:
telnet localhost 5554 After you have come to the shell you can emulate sms with command:
sms send <phonesender> <textmessage>
For More Info Refer this link
If you send sms from emulator, see this http://mobiforge.com/developing/story/sms-messaging-android
这篇关于是否有可能接受她从Android模拟器短信?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!