Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Programmatically Access Your Application Version

by BlackBerry Development Advisor on ‎02-27-2013 04:48 PM (3,703 Views)

I like to be able to determine the application version when my application runs. This is useful for bug reporting, savefiles, etc...

 

The following code snippet can be used to determine your application version.

 

var appXml:XML = NativeApplication.nativeApplication.applicationDescriptor;
var ns:Namespace = appXml.namespace();
var appVersion:String = appXml.ns::versionNumber[0];

 

Contributors
Users Online
Currently online: 4 members 905 guests
Recent signins:
Please welcome our newest community members: