Application Information

Here is an example how we can get information about a current application

//listening for the event
AndroidAppInfoLoader.ActionPacakgeInfoLoaded += OnPackageInfoLoaded; 
//start retrieving request
AndroidAppInfoLoader.Instance.LoadPackageInfo ();

private void OnPackageInfoLoaded(PackageAppInfo PacakgeInfo) {
	AndroidAppInfoLoader.ActionPacakgeInfoLoaded -= OnPackageInfoLoaded; 

	string msg = "";
	msg += "versionName: "   + PacakgeInfo.versionName + "\n";
	msg += "versionCode: "   + PacakgeInfo.versionCode + "\n";
	msg += "packageName"     + PacakgeInfo.packageName + "\n";
	msg += "lastUpdateTime:" + System.Convert.ToString(PacakgeInfo.lastUpdateTime) + "\n";
	msg += "sharedUserId"    + PacakgeInfo.sharedUserId + "\n";
	msg += "sharedUserLabel" + PacakgeInfo.sharedUserLabel;

	AN_PoupsProxy.showMessage("App Info Loaded", msg);
}

The PackageInfo calls contain the following information:

public string versionName;
public string versionCode;
public string packageName;
public string sharedUserId;
public string sharedUserLabel;
public long lastUpdateTime;

An example API use can be found under the AnOtherFeaturesPreview.sc script.

Example Scene:

Plugins -> StansAssets -> Modules -> AndroidNative -> xExample -> Scenes -> Other -> OtherFeatures