Can't exit an Android application
Posted
by saravanan
on Stack Overflow
See other posts from Stack Overflow
or by saravanan
Published on 2010-04-20T10:14:09Z
Indexed on
2010/04/20
11:03 UTC
Read the original article
Hit count: 171
android
//
@Override public boolean onOptionsItemSelected(MenuItem item) { // TODO Auto-generated method stub switch(item.getItemId()) { case EXIT: try { this.finish(); } catch(Exception e) { } break; } return false; }
When I exit my android application it resumes the previous screen. How can I exit the Android application properly?
© Stack Overflow or respective owner