Skip to content

Instantly share code, notes, and snippets.

@marchbold
Last active August 29, 2015 14:17
Show Gist options
  • Save marchbold/2a3ff058a23d1ceb3cbe to your computer and use it in GitHub Desktop.
Save marchbold/2a3ff058a23d1ceb3cbe to your computer and use it in GitHub Desktop.
Device Information using the Application ANE
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