Implemented proper android application life cycle
Merge pull request #1 from LHBDev/master

Implemented proper android application life cycle