开发者

Android hardware and Adobe AIR

开发者 https://www.devze.com 2023-02-08 15:05 出处:网络
Do any of you know a method that an Android application built using Adobe Flash can access hardware API on the device?

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

精彩评论

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