adding button to android application to quit app without using back button -


i'm new android programming,i want add button exits app. don't want use buttons exit app

i have enough knowledge creating intents open new activity , other basics of android programming

according android guidelines, should never ever put exit button on android application. have let os decide when kill activity. should android activity lifecycle , implement necessary callbacks.

nevertheless, previous answers work well.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -