Skip to main content
Inspiring
October 3, 2019

Application.Quit() causes crashing on next app launch

I think Application.Quit() on Android doesn't properly remove the app, which causes the app to crash next time you launch it. Use this instead:
System.Diagnostics.Process.GetCurrentProcess().Kill();
Just wanted to share since it's easy to overlook. Might be one of the reasons your app keeps stopping.

3 replies

Inspiring
October 18, 2019
I also noticed this quirk, will try
Inspiring
October 21, 2019
very helpful, thanks!

Edit: upon testing this doesnt seem to do anything on quest
Participant
September 16, 2020

Weitin said:

I think Application.Quit() on Android doesn't properly remove the app, which causes the app to crash next time you launch it. Use this instead:
System.Diagnostics.Process.GetCurrentProcess().Kill();
Just wanted to share since it's easy to overlook. Might be one of the reasons your app keeps stopping.


I've just got my review and I have exactly the same problem. Thank you very much! :)