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


基础教程推荐
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01