Managing the Activity Lifecycle

http://developer.android.com/training/basics/activity-lifecycle/index.html
こちらをやる