string getAppVersionInfoByLabel(string)

Retrieves version information for an application.

Parameters

Name Description
label string
The label of the application to return information for.

Return

Returns a JSON-serialized string with the version information.

Remarks

The serialized object is an associative array with members: name and code. Name is the versionName from the manifest, and code is the versionCode as a String. The app must have a launcher activity to support this functionality. If the package that you are trying to get info for does not support a launcher, you may use getAppVersionInfoByPackage() instead.

Examples


var x = KioWareUtils.getAppVersionInfoByLabel('Some Application');
alert(x);
// output:
// {
// "name": "1.2",
// "code": "1234"
// }
    

Requirements

KioWare for Android version 3.14 or greater.