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
[Shot A] For the purposes of the Sunshine app, this information is purely theoretical. In fact, you’ll really only need to consider this later, when you're adding things like sensor or location listeners. Until then, the default components will handle much of this behaviour for you.
[Shot B] In any case, now that you understand the lifecycle, and the way the system handles exiting your app when it requires the resources, you should hopefully understand why exit or “quit” buttons in Android apps serve no practical purpose. At most, you can call finish() on an Activity and it will get torn down instantly -- but that’s actually what happens when a user simply hits “back” from within an Activity.
If you’re still not convinced, check out the video in the instructor notes where I explain my reasoning with a little more… color. [funny screenshot of video]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment