The Saving an activity's state recipe in Chapter 1, Activities Refer to the following developer link for more information on the Configuration class: http://developer.android.com/reference/android/content/res/Configuration.html Refer to the following link for more information on the getRotation() method: http://developer.android.com/reference/android/view/Display.html#getRotation()