- If you have any questions/comments, please visit Pico Developer Answers and raise your question there.
AAR file, demo APK are in /resource.
Note: Regarding java package creation and usage, please refer to the Guideline
This demo shows how to kill a specific process.
com.picovr.killapplication.KillAppClass
Add uses-permission property:
<uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" />
void killApp(String pkgName, Context context)
AndroidJavaObject killApp = new AndroidJavaObject("com.picovr.killapplication.KillAppClass");
AndroidJavaObject context = new AndroidJavaClass("com.unity3d.player.UnityPlayer").GetStatic<AndroidJavaObject>("currentActivity");
killApp.Call("killApp", "com.picovr.store", context);