Problem Description
If we call another app or activity in the android app, the pause event is not being fired.
Actual Results
Event is not fired
Expected Results
The event pause should be fired.
Test case
1. Create mobile project.
2. Paste this into the app.js
if(Ti.Platform.osname == 'iphone') { // WORKING FOR iPHONE
// do nothing
} else {
// event listeners for android
// NOT WORKING
Ti.Android.currentActivity.addEventListener('create',function(){Ti.API.info('Create call')});
Ti.Android.currentActivity.addEventListener('destroy',function(){Ti.API.info('Destroy call')});
Ti.Android.currentActivity.addEventListener('pause',function(){Ti.API.info('Pause call')});
Ti.Android.currentActivity.addEventListener('resume',function(){Ti.API.info('Resume call')});
Ti.Android.currentActivity.addEventListener('start',function(){Ti.API.info('Start call')});
Ti.Android.currentActivity.addEventListener('stop',function(){Ti.API.info('Stop call')});
}
Ti.Platform.openURL('tel://911');
I tested this in the latest master build and I cannot reproduce. I tried on a galaxy S2 and a 2.2 emulator, and verified that all of the events are fired correctly.
Closing this ticket as the issue cannot be reproduced.