Flex Hero:我可以访问Android指南针吗?

时间:2022-05-19 05:28:29

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?

是否有可能在Android上使用Air并访问指南针?我看到有一些加速支持(http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/flash/sensors/Accelerometer.html)但罗盘呢?

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?

如果它不可访问,是否可以在本机android-app收听指南针更新和空中应用程序之间进行一些通信?

3 个解决方案

#1


1  

You can use ANEs to create a bridge between AIR and native functionality. http://www.youtube.com/watch?v=E9VMPM5RfQI

您可以使用ANE在AIR和本机功能之间创建桥梁。 http://www.youtube.com/watch?v=E9VMPM5RfQI

#2


0  

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.

从来没听说过。它似乎还没有包含在flash.sensors包中。我希望这会很快改变。我不认为Android上的Air可以与移动环境中的第三方应用程序通信。

#3


0  

You can use heading of the Geolocation as an alternative way.

您可以使用地理位置的标题作为替代方法。

#1


1  

You can use ANEs to create a bridge between AIR and native functionality. http://www.youtube.com/watch?v=E9VMPM5RfQI

您可以使用ANE在AIR和本机功能之间创建桥梁。 http://www.youtube.com/watch?v=E9VMPM5RfQI

#2


0  

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.

从来没听说过。它似乎还没有包含在flash.sensors包中。我希望这会很快改变。我不认为Android上的Air可以与移动环境中的第三方应用程序通信。

#3


0  

You can use heading of the Geolocation as an alternative way.

您可以使用地理位置的标题作为替代方法。