I'm developing an application in Android, and I use the the following code to handle the KeyEvent for the back button:
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
    if ((keyCode == KeyEvent.KEYCODE_BACK)) 
    {           
        finish();
    }
    return super.onKeyDown(keyCode, event);
}
How would I go about doing this for the home button?