cancel
Showing results for 
Search instead for 
Did you mean: 

Application.Quit() causes crashing on next app launch

Weitin
Protege
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 3

SlashAndBurn
Expert Protege
I also noticed this quirk, will try

MikeF
Trustee
very helpful, thanks!

Edit: upon testing this doesnt seem to do anything on quest

laszlo_leber
Protege

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! 🙂