Android Emulator: Receive SMS sent from emulator on a port

本小妞迷上赌 提交于 2019-12-10 18:46:53

问题


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

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?

Any pointers would be very appreciated.

Many thanks.


回答1:


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

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.

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



来源:https://stackoverflow.com/questions/2234901/android-emulator-receive-sms-sent-from-emulator-on-a-port

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