开发者

Android hardware and Adobe AIR

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

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);

But how would you do it in an AIR application? Is it even possibl开发者_Python百科e?

Thanks!


No you can't access native API from AIR.

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜