This method is called before an activity may be killed so that when it comes back some time in the future it can restore its state.