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
So, why did this happen? As you’ll learn in Lesson 5, it’s possible to create different layouts and resources for different device configurations -- everything from screen size, to pixel density, and device orientation. Keep in mind that some of these values -- such as device orientation and screen width -- can change at runtime, so Android activities are destroyed and recreated whenever a device configuration changes -- because the layout, and all the resources within it, could be completely different based on something as simple as a screen rotation.
And that’s not the only time your Activity might find itself unexpectedly being killed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment