Adding developer.android.com gettingstated/activitylifecycle example from http://developer.android.com/training/basics/activity-lifecycle/index.html