when a user leaves the current activity by pressing the home screen button, how can i make this trigger a method? This doesn't seem to call onResume(), onPause(), or onDestroy().
onUserLeaveHint() looks like it should do what I want, but it doesn't seem to work either using:
@Override
public void onUserLeaveHint() {
super.onUserLeaveHint();
Toast.makeText(this, "FOO", Toast.LENGTH_SHORT).show();
}