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

Communication between two apps using emulator as server and client(使用模拟器作为服务器和客户端的两个应用程序之间的通信)

本文介绍了使用模拟器作为服务器和客户端的两个应用程序之间的通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有问题.我想在我的计算机上制作一个 emulator 作为服务器.然后我想与安装在同一台计算机上的另一个模拟器上的另一个应用程序进行通信.或者这也可能是两部手机.类似地,两个模拟器作为服务器客户端进行通信

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

我在 Google 上搜索,但没有找到相关答案.

I searched on Google but I found no relevant answers.

问题:

1)我有两个模拟器或手机`

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

推荐答案

最后我通过 本博客的帮助.我使用服务器和客户端代码,然后使用ADB启动一个模拟器作为服务器.谢谢大家的帮助和支持

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

这篇关于使用模拟器作为服务器和客户端的两个应用程序之间的通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:使用模拟器作为服务器和客户端的两个应用程序之间的通信

基础教程推荐