Actually pass activity for lifecycle events.