Quit Application by Menu Item
Hello readers,
While Goggling I found this question on stackoverflow, So I thought to share it here,
many users searches for "Dose user have any choice to kill the application unless we put a menu option in to kill it" the answer is as below-
It is not wise to handle a MenuItem or any button to kill the application.
Though it is possible if you set onclicklistner on MenuItem and call finish() on item click if you want to explicitly want to end the application, but this approach is quite pointless.
you can simply exit from the application by pressing the Back button of the phone
0 Comment(s)