Monday, April 15, 2013

Android home button


perform task on press home button


or close activity on press home button android

@Override
protected void onPause()
{
super.onPause();
finish();
this.finish();
System.exit(0);
// insert here your instructions
}

No comments:

Post a Comment