空气<->安卓通讯

发布于 2024-09-26 06:42:59 字数 623 浏览 3 评论 0 原文

我正在寻找一种在桌面上运行的 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

隐诗 2024-10-03 06:43:00

我不确定 Grant Skinner 是否将其用于 Androideroid,但您应该查看 Adobe Stratus完成两个Flash播放器之间的通信。

来自 Ryan Stewart 的 Stratus 上的博客条目< /a>:

Adobe Stratus 是一项托管测试版服务
使用新的 RTMFP 功能
Flash Player 10 直接连接
而不必往返
服务器和实例之间
玩家。

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:

Adobe Stratus is a hosted beta service
that uses new RTMFP functionality in
Flash Player 10 to connect directly
instead of having to round trip
between the server and the instance of
the player.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文