Added ActivityLifecycleMethods.