Run External App

With this API, you can easily run another application on Android device.

Example running Youtube app installed using com.google.android.youtube package name:

AndroidNativeUtility.Instance.StartApplication ("com.google.android.youtube");

You can also check if the particular app was installed, code snippet bellow shows how to do this.

AndroidNativeUtility.OnPackageCheckResult += OnPackageCheckResult;
AndroidNativeUtility.Instance.CheckIsPackageInstalled("com.google.android.youtube");



void OnPackageCheckResult (AN_PackageCheckResult res) {
	if(res.IsSucceeded) {
		AN_PoupsProxy.showMessage("On Package Check Result" , "Application  " + res.packageName + " is installed on this device");
	} else {
		AN_PoupsProxy.showMessage("On Package Check Result" , "Application  " + res.packageName + " is not installed on this device");
	}

	AndroidNativeUtility.OnPackageCheckResult -= OnPackageCheckResult;
}

Example Scene:

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