Changing what actions to perform during activity lifecycle changes.