如何检测的是Android OS版本的Adobe AIR? [英] How can I detect the Android OS version in Adobe AIR?

查看:176
本文介绍了如何检测的是Android OS版本的Adobe AIR?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iOS上,Adobe AIR中的Capabilities.os可能类似于iPhone OS 5.1.1 iPad3,1 - 很清楚识别的操作系统版本,以及该设备模型。在Android上,它看起来更像是的Linux 2.6.35.7-59465-g42bad32 维基百科列出了以下Linux内核为Android版本:

On iOS, Adobe AIR's Capabilities.os may be something like "iPhone OS 5.1.1 iPad3,1" - very clearly identifying the OS version as well as the device model. On Android, it looks more like "Linux 2.6.35.7-59465-g42bad32". Wikipedia lists the following Linux kernels for android versions:

  • 2.6.29:1.6,2.0,2.1
  • 2.6.32:2.2倍
  • 2.6.35:2.3倍
  • 2.6.36:3.X
  • 3.0.1:4.0倍

难道这些设置在石头上或将某些系统汇报不同的Linux版本?

Are these set in stone or will some systems report different Linux versions?

有没有更好的方式使用AIR和ActionScript来确定Android操作系统版本?

Is there a better way to determine Android OS version using AIR and ActionScript?

对于我而言,我需要从4.1(果冻豆)区分4.0(冰淇淋三明治)。我认为4.1采用Linux内核3.1.10 - ?任何人都可以确认

For my purposes I need to differentiate 4.0 (Ice Cream Sandwich) from 4.1 (Jelly Bean). I think 4.1 uses Linux kernel 3.1.10 - can anyone confirm?

推荐答案

嗯,我有另一种解决方案。我发现这个AS3类,它通过抓取名为/system/build.prop。

Well, I have another solution. I've found this AS3 class which determines Android's version by grabbing an Android system file named "/system/build.prop".

您还可以得到额外的信息,如型号,品牌,SDK版本和CPU

You can also get additional info such as Model, Brand, SDK Version and CPU

看看: https://github.com/funky-monkey/ Android的本机设备,信息

另请参阅本,了解有关iOS的信息:

See also this for informations regarding iOS:

这篇关于如何检测的是Android OS版本的Adobe AIR?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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