0

So ill do my best to explain. I'm wondering how easy (or hard) it would be to make an android app that talks/sends and receives data from a PC or mac, even more so with flash.

so for example, I first make a flash application on my PC / Mac, lets say it has a MovieClip of a square on the stage. That is all for that part. Next I make and android app that consists of one button. when I press that button (on the android app, on the phone) the square on the flash desktop application moves to the right or left by ten pixels.

so ultimately the mobile app is controlling the desktop flash application.

Iv searched and searched but I'm unsure of what keywords to really use to find what im looking for.

Can anybody shed some light on how difficult this is(if its possible), or any documentation / tutorials on this subject?

4

2 回答 2

2

蓝牙标准包括一个称为蓝牙 HID的配置文件。如果您编写(或下载!)实现此配置文件的 Android 应用程序,然后将您的 Android 设备连接到您的 PC,它基本上就变成了蓝牙鼠标或键盘。它不需要在 PC 端进行编程,因为 Windows 和 Mac 都支持蓝牙外围设备。

在设备端实现网络协议通常是非常底层的东西。如果您的编程经验只是在 Flash 中,您可能会觉得这很困难(您可能会学到很多东西!)。幸运的是,有Android HID库。我不知道它有多好(我刚刚为这个答案找到了它),但它看起来已经完成了,所以它可以让你不必做最困难的部分。

于 2012-12-21T22:30:45.427 回答
1

您可以使用 adb 来完成此操作,这就是有多少网络共享应用程序绕过运营商限制。以下是一些来源:

Adblib 是一个“通过 USB 与 android 设备通信的库,无需 Android SDK”: http ://code.google.com/p/adblib/

关于 Adb over USB 的主题: http ://groups.google.com/forum/?fromgroups=#!topic/android-developers/JsDTBimHpOA

adb 本身:http: //developer.android.com/tools/help/adb.html


以下是其他一些 Android USB 主题的其他链接:

http://developer.android.com/tools/adk/index.html

http://developer.android.com/guide/topics/connectivity/usb/host.html

http://developer.android.com/guide/topics/connectivity/usb/accessory.html

http://developer.android.com/reference/android/hardware/usb/UsbInterface.html

http://developer.android.com/sdk/win-usb.html

于 2012-12-21T22:44:21.177 回答