Android模拟器:接收短信,从仿真器端口发送 [英] Android Emulator: Receive SMS sent from emulator on a port

查看:682
本文介绍了Android模拟器:接收短信,从仿真器端口发送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算用Android模拟器发送/接收短信。

I intend to use the Android Emulator to send/receive SMS.

我使用手机短信发送命令发送短信到仿真器。我知道模拟器能够通过短信与对方交谈,但将有可能收到的短信回复从Android模拟器发出的外部TCP端口?

I send SMS to the emulator using the sms send command. I'm aware of emulators being able to converse with each other over SMS but would it possible to receive that the SMS reply sent from an Android Emulator on a external TCP port?

任何指针将是非常美联社preciated。

Any pointers would be very appreciated.

非常感谢。

推荐答案

您可以开始第二Android虚拟设备,一个是发短信另一个用于检索的短信。

You can start 2nd Android Virtual Device, one for send SMS another for retrieve SMS.

在接收机领域,你必须输入另一个AVD的端口号,它在最左边的角落OD的AVD窗口(例如5554:myAVD,其实它的端口号)。当然,你必须创建2自动真空淀积系统

In the receiver field, you have to input the port number of another AVD, it's in the left up corner od the AVD window (ex. 5554:myAVD, actually it's port number).Of course you have to create 2 AVDs.

你也可以使用DDMS来监视这两个自动真空淀积系统之间的logcat的消息。

And you can use ddms to monitor the logcat message between these two AVDs.

这篇关于Android模拟器:接收短信,从仿真器端口发送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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