Added MainActivity lifecycle methods
Merge remote-tracking branch 'origin/master'