Gives the user control over starting and stopping the activity.
The application returns to the main activity when the device exits a
region.