Flex Hero:我可以访问 Android 指南针吗?
是否可以在 Android 上使用 Air 并访问指南针?我看到有一些加速支持(http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/flash/sensors/Accelerometer.html),但是指南针呢?
如果无法访问,是否可以在侦听指南针更新的本机 Android 应用程序和空中应用程序之间进行一些通信?
Is it possible to use Air on android and access the compass? I saw there is some acceleration support (http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/flash/sensors/Accelerometer.html) but what about the compass?
If it is NOT accessible, would it be possible to do some communication between a native android-app listening for compass update and an air application?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以使用 ANE 在 AIR 和本机功能之间创建桥梁。
http://www.youtube.com/watch?v=E9VMPM5RfQI
You can use ANEs to create a bridge between AIR and native functionality.
http://www.youtube.com/watch?v=E9VMPM5RfQI
据我所知没有。它似乎尚未包含在
flash.sensors
包中。我希望这种情况很快就会改变。我认为 Android 上的 Air 不可能与移动环境中的第三方应用程序进行通信。Not that I know of. It doesn't seem to be included in the
flash.sensors
package just yet. I'm hoping that will change soon enough. I don't think it's possible to have Air on Android communicate with a 3rd party app within the mobile environment.您可以使用地理位置的标题作为替代方法。
You can use heading of the Geolocation as an alternative way.