System.exit() in android -


i know system.exit(0) should not used. have read plenty of tutorials stating why it's not recommended exiting applications , finish() better alternative ,but in rare case when dirty workaround used main question can harm android device or aspect of device if used?

short answer: no.

long answer: no, doesn't harm device or aspect of device. removes app memory , cleans used resources. if have files open, can become corrupted, filesystem won't. android should release , resources (gps, wifi, etc) have in use @ time, in undefined state. compare effects of system.exit() app-crash: wouldn't affect device either.


Comments

Popular posts from this blog

All overlapping substrings matching a java regex -

c++ - Using OpenSSL in a multi-threaded application -

php - Deleting/Renaming a locked file -