TIMOB-16044-pause and resume when the activity is paused or resumed

https://jira.appcelerator.org/browse/TIMOB-16044