I have an android app where I check user credential in the first screen from a remote server. I have a timeout of 10 secs. After timeout app sends user to Error Page. There I have an Exit button.
I have tried writting all the logic for exiting the application including
android.os.Process.killProcess(android.os.Process.myPid());
in the click of exit button. But I am not able to ext from the application.
Please help me finding a way to exit the app.
Why would the user want to exit the app just because the user entered the wrong credentials/dont have the right credentials?
If I were you, the error view/activity/"page" would offer a constructive solution to whatever problem brought the user there. There is not really any benefit for the user in simply saying "error" and then exiting the app.
As for your question, Google discourages implementing exit buttons. Android will "exit" your app when it sees fit and it is up to the developer to implement the correct behavior when this happens.
http://developer.android.com/guide/topics/fundamentals/activities.html
Is quitting an application frowned upon?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With