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


- 用 Swift 实现 UITextFieldDelegate 2022-01-01
- 在测试浓缩咖啡时,Android设备不会在屏幕上启动活动 2022-01-01
- Android - 拆分 Drawable 2022-01-01
- Android - 我如何找出用户有多少未读电子邮件? 2022-01-01
- 想使用ViewPager,无法识别android.support.*? 2022-01-01
- 使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout 2022-01-01
- android 4中的android RadioButton问题 2022-01-01
- 如何检查发送到 Android 应用程序的 Firebase 消息的传递状态? 2022-01-01
- Android viewpager检测滑动超出范围 2022-01-01
- MalformedJsonException:在第1行第1列路径中使用JsonReader.setLenient(True)接受格式错误的JSON 2022-01-01