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 ...
精彩评论