resumed event

You must Login before you can answer or comment on any questions.

Hi, in my iPad app i need to do something when the user comes back from the lockscreen, i used the resumed event and it works but with a problem, the resumed event is called also when the user comes back from the multitasking bar or from the springboard, but i don't need to do nothing in this situation, how can i do?

1 Answer

Accepted Answer

Hi Raffaele,

Try this code that may help you.Best Luck

Ti.App.addEventListener('resume', function(e) {
 
    if(Ti.App.getIdleTimerDisabled()) {
        alert('Call from Lock');
    } else {
        alert('multitask');
    }
});

Your Answer

Think you can help? Login to answer this question!