implemented onRestart to resume tracking if the app
returns to focus.