我正在寻找一种在桌面上运行的 AIR 应用程序和 Android 应用程序(显然是在手机上运行)之间进行通信的方法。基本上,我计划通过 Android 手机上的应用程序来控制桌面应用程序。
Grant Skinner 在他的 Androideroid 游戏中做了类似的事情,这是可通过中央计算机上的多个 Android 设备进行播放。遗憾的是,他没有透露他是如何做到这一点的。
我想要实现的是通过蓝牙和/或wifi进行通信;当应用程序运行时,手机将与台式电脑处于同一网络中。我最好正在寻找一种允许在手机上运行本机 Android 应用程序的解决方案,但如果它与 Android 应用程序上的 AIR 配合使用更容易,我也可以这样做。
如果需要,我还愿意在 Android 应用程序与之通信的桌面计算机上设置一些服务,然后将命令中继到 AIR 应用程序。但考虑到Flash支持p2p连接,我想有一个更简单的方法。
带着这个问题,我不是在寻找任何代码或示例。相反,我希望您给我一些关于它如何工作的提示,哪些技术适合于此,以及它在特定平台上大致如何工作,以便我可以更详细地研究。谢谢。
I'm looking for a way have some way of communication between an AIR application that runs on a desktop and an Android application (that obviously runs on a phone). Basically, I plan to make the desktop application controllable via an application on an Android phone.
Grant Skinner did a similar thing with his Androideroids game, which is playable via multiple Android devices on a central computer. Sadly he didn't tell anything about how he managed to do this.
What I would like to achieve is a communication via bluetooth and/or wifi; when the application is running, the phone will be in the same network as the desktop computer. Preferably I'm looking for a solution that allows running a native Android application on the phone, but if it works much easier with an AIR on Android app, I'm fine going that way too.
If required I am also willing to set up some service on the desktop computer that the Android app is communicating with which then relays the commands to the AIR application. But given that Flash supports p2p connections, I guess there is an easier way.
With this question I'm not looking for any code or examples. Instead I would like you to give me some hints on how this could work, what techniques are appropriate for this and how it would roughly work on the particular platform, so I can research on that more detailed. Thank you.
发布评论
评论(1)
我不确定 Grant Skinner 是否将其用于 Androideroid,但您应该查看 Adobe Stratus完成两个Flash播放器之间的通信。
来自 Ryan Stewart 的 Stratus 上的博客条目< /a>:
i'm not sure if Grant Skinner used this for Androideroids, but you should check out Adobe Stratus to accomplish communication between two flash players.
from Ryan Stewart's blog entry on Stratus: