Skip to content

Instantly share code, notes, and snippets.

@jwill
Last active August 29, 2015 14:02
Show Gist options
  • Save jwill/6e10a96fb5cfde9dd3a3 to your computer and use it in GitHub Desktop.
Save jwill/6e10a96fb5cfde9dd3a3 to your computer and use it in GitHub Desktop.
t
[examples written] Some good examples you might have come up with are Sensor Listeners, Location updates, Realtime physics or lighting engines, and Programatically registered Broadcast Receivers.
Anything that doesn’t need to keep updating until the user returns to the app should be paused on onPause and resumed in onResume. Anything that should keep happening when the Activity is paused, shouldn’t happen within an Activity -- and we’ll look at some of those in later lessons.
Keep in mind that your Activity is still *visible* -- though partially obscured -- when it’s paused but not stopped. So don’t stop drawing your UI when you receive onPause!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment