可以直接通过C#实现,也可以通过plugin的方式结合Java实现。 下面是通过纯C#实现的方式:
public void LaunchApp(string pkgName){
AndroidJavaClass jc = new AndroidJavaClass ("com.unity3d.player.UnityPlayer");
jo = jc.GetStatic<AndroidJavaObject> ("currentActivity");
AndroidJavaObject joPackageManager = jo.Call<AndroidJavaObject> ("getPackageManager");
AndroidJavaObject joIntent = joPackageManager.Call<AndroidJavaObject> ("getLaunchIntentForPackage", pkgName);
if (null != joIntent) {
jo.Call ("startActivity", joIntent);
}
}