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

c++11 - Intel compiler and "cannot have an in-class initializer" when using constexpr -

rest - Spring boot: Request method 'PUT' not supported -

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -