I Found some codes for quit an Android application programatically. By calling any one of the following code in onDestroy() will it quit application entirely?
If you're using Kotlin, the proper way to exit the app and alternative to System.exit() is a built-in method
System.exit()
exitProcess(0)
See the documentation.
Number 0 as a parameter means the exit is intended and no error occurred.
0