sisong / UnityAndroidHotUpdate

I no longer install and use Unity3D. (Unity3D热更新。provide a way to hot update Unity app on Android, support code&resources, not need lua js or IL runtime etc..., will not disturb your project development; just loading the new version apk file to achieve. )
MIT License
192 stars 49 forks source link

crash on start after exit apk by "Application.Quit(); System.Diagnostics.Process.GetCurrentProcess().Kill();" #37

Closed sisong closed 5 years ago

sisong commented 5 years ago

exit apk can used :

        Intent mainIntent = new Intent(Intent.ACTION_MAIN);
        mainIntent.addCategory(Intent.CATEGORY_HOME);
        mainIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        app.startActivity(mainIntent);
        System.exit(errCode);