I'm attaching a resume event to the app and I want to detect what window is currently focused
Ti.App.addEventListener('resume', function(e) {
// what window is focused? visible?
});
I'm attaching a resume event to the app and I want to detect what window is currently focused
Ti.App.addEventListener('resume', function(e) {
// what window is focused? visible?
});
just set a flag with on the every window focus event like
Ti.App.Properties.setString('currentWindow',Ti.UI.currentWindow.title);
so you only need to request this flag..