I have created an Android app.
I need to close or exit my application when I click the back button from my mobile.
How can I achieve that?
you have to handle the back button functionality
@Override public void onBackPressed() { // TODO Auto-generated method stub super.onBackPressed(); finish(); }
1.4m articles
1.4m replys
5 comments
56.9k users