Question: Is that possible to get notification when Home button is pressed or Home Screen is launched?

In [Android Overriding home key](https://stackoverflow.com/questions/5039500/android-overriding-home-key) thread i read that "it will be notified when the home screen is about to be launched". So is that possible, if yes how?

Thank you

Answer: 
> 
> Is that possible to get notification when Home button is pressed or Home Screen is launched?
> 
> 
> 

Only by being a home screen.
You can simply add this on your activity:

```
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
    if (keyCode == KeyEvent.KEYCODE_HOME) {
        // Do something
    }

    return super.onKeyDown(keyCode, event);
}

```