Overrode all lifecycle methods in main activity and added log messages. Added button to destroy activity