Android的硬件和Adobe AIR [英] Android hardware and Adobe AIR

查看:249
本文介绍了Android的硬件和Adobe AIR的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

做任何你知道一个Android应用程序使用Adobe Flash可以访问硬件API的设备上内置的方法?

Do any of you know a method that an Android application built using Adobe Flash can access hardware API on the device?

例如,我启动Flash CS5和创建Android应用程序一个新的空气。该应用程序只包含一个按钮。当该按钮为pressed器件切换的无线。这很容易,只需创建一个wifiManager做Java的:

For example, I launch Flash CS5 and create a new AIR for Android application. The application consists only of a button. When that button is pressed the wireless on the device toggles. This is easy to do in Java by just creating a wifiManager:

WifiManager wifiManager = (WifiManager)this.getSystemService(Context.WIFI_SERVICE);
wifiManager.setWifiEnabled(true/false);

但是,你会怎么做,在AIR应用程序?它甚至有可能?

But how would you do it in an AIR application? Is it even possible?

谢谢!

推荐答案

不,你不能从AIR访问本机API。

No you can't access native API from AIR.

但是,如果你真的想要有<一href="http://webcache.googleusercontent.com/search?q=cache%3aloPzOIFxhnMJ%3aelromdesign.com/blog/2010/10/29/hacking-native-android-with-air-app-to-allow-air-access-unavailable-apis/&hl=en&client=firefox-a&strip=1"相对=nofollow>一个黑客做到这一点...

But if you really want it there's a hack to do this ...

这篇关于Android的硬件和Adobe AIR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆