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
这篇关于使用模拟器作为服务器和客户端的两个应用程序之间的通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:使用模拟器作为服务器和客户端的两个应用程序之间的通信
基础教程推荐
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
