Appcelerator Titanium code to fire paused/resumed events in Android the proper way