I\'m working in Actionscript in Adobe Air, and I want to get a device\'s model name, such as \'EVO\' or \'DROID X\'. Has anyone been able to do this? Thanks.
Capabilities.os
and Capabilities.manufacturer
are probably sufficient for identifying an iOS device (iPhone, iPod, iPad, as well as their generation). On Android, the platform you specified, these properties are too general. In my testing, manufacturer
is "Android Linux" and os
is "Linux" plus numbers indicating the exact Linux version. This is enough for your code to recognize it's running on Android but little else.
To access device name on Android, you'd need to write or find a Native Extension that returns android.os.Build.MODEL
. Based on searching, no such extension exists yet.