Array

Versioning

Must Read

Admin
Admin
Just post!

Versioning gives you the opportunity to submit fixes and updates to your application. A version number consists of three digits separated by dots, as in 1.0.0, referred to as major.minor.build. Set the version number in Flash Professional in the
Settings window. In Flash Builder, open the application descriptor and change the version number in the XML.

For debugging purposes, you can check the version number at runtime from the appli cationDescriptor of the NativeApplication.nativeApplication that is an XML object:

import flash.desktop.NativeApplication;
var applicationDescription:XML =
NativeApplication.nativeApplication.applicationDescriptor;
var ns:Namespace = applicationDescription.namespace();
// http://ns.adobe.com/air/application/2.6
var currentVersion:String = applicationDescription.ns::versionNumber;
// 1.0.0

The update to an application appears on the Android Market quickly.

As mentioned earlier in this chapter, the update can be accomplished in two ways. You can specify your preference in the application descriptor, or the user can specify it manually. The following tag implies that the update is handled by the user upon doubleclicking:

<customUpdateUI>false</customUpdateUI>

If the user installs an update of your application, previously saved data is preserved.

- Advertisement -

Latest News

Lampang: A Gateway to Northern Thailand’s Natural Beauty

Located in northern Thailand, Lampang is a charming city that is often overlooked by tourists. Despite its small size,...
- Advertisement -

More Articles Like This

- Advertisement -