Last active
August 29, 2015 14:17
-
-
Save marchbold/2a3ff058a23d1ceb3cbe to your computer and use it in GitHub Desktop.
Device Information using the Application ANE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try | |
{ | |
Application.init( APPLICATION_KEY ); | |
if (Application.isSupported) | |
{ | |
trace( "DEVICE INFO ============================" ); | |
trace( " name: " + Application.service.device.name ); | |
trace( " brand: " + Application.service.device.brand ); | |
trace( " manufacturer: " + Application.service.device.manufacturer ); | |
trace( " device: " + Application.service.device.device ); | |
trace( " model: " + Application.service.device.model ); | |
trace( " product: " + Application.service.device.product ); | |
trace( "OPERATING SYSTEM =======================" ); | |
trace( " name: " + Application.service.device.os.name ); | |
trace( " type: " + Application.service.device.os.type ); | |
trace( " version: " + Application.service.device.os.version ); | |
} | |
} | |
catch (e:Error) | |
{ | |
trace( "ERROR::"+e.message ); | |
} | |
// com.distriqt.Application |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment