使用仿真器作为服务器和客户端两个应用程序之间的通信

问题描述:

我有一个问题。我想我的电脑作为服务器上的模拟器。然后我想传达给安装在同一computer.Or另一个模拟器其他应用程序,这可能是两个电话also.similarly 2模拟器进行通信,服务器客户端

I have a problem. I want to make an emulator on my computer as a server. Then I want to communicate to another application installed on another emulator on the same computer.Or this may be two phone also.similarly two emulator communicate as server client

我搜索在谷歌,但我没有找到相关的答案。

I searched on Google but I found no relevant answers.

问题:

1)我有两个模拟器或phone`

1)I have two emulators or phone`

2)我想要一个工作服务器,并努力为客户其他的,我想     它们之间的互通。

2)I want one work as server and the other to work as a client, and I want to communicate between them

最后,我用socket编程的这个博客。我使用的服务器和客户机code,然后利用亚行帮助启动一台模拟器为server.Thank大家的帮助和支持

Finally i solve my problem using socket programming with help of this Blog.I use server and client code and then use ADB to start one emulator as server.Thank you all for your help and support