Android的硬件和Adobe AIR

编程入门 行业动态 更新时间:2024-10-27 20:39:11
本文介绍了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.

但是,如果你真的想要有一个黑客做到这一点...

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

更多推荐

Android的硬件和Adobe AIR

本文发布于:2023-11-23 14:33:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1621794.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:硬件   Android   AIR   Adobe

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!