You haven't fully understood the Activity lifecycle. An activity can be killed at any time it's not in the foreground, or when something changes (like orientation).
If you have data, like instance variables, that you want to save the state of, do so in onSaveInstanceState
. That's what it's for.