using UnityEngine; using System.Collections; public class AppStarter : MonoBehaviour { public void GO(string bundleid) { AndroidJavaClass jc = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); AndroidJavaObject jo = jc.GetStatic<AndroidJavaObject>("currentActivity"); AndroidJavaObject pm = jo.Call<AndroidJavaObject>("getPackageManager"); AndroidJavaObject intent = pm.Call<AndroidJavaObject>("getLaunchIntentForPackage", bundleid); jo.Call("startActivity", intent); } void OnGUI() { if (GUI.Button(new Rect(0,0,100,100), "ON")) GO("ru.arlive.phairstrike"); } }