Hi,
I (my costumer/client) have problem with home button:
loginWindow.addEventListener('android:back', function() { return false; // this prevent window closing }); loginWindow.addEventListener('android:home', function() { Ti.API.log('HOME pressed........'); return false; });If I click home, then the process goes in background. Is it possible to avoid?
Rainer
2 Answers
Where did you get the "android:home" window event? That's not in the API docs.
Normal android behavior is to send an app into the background when the user hits the "home" button.
There is no android:home event to capture. In fact, a quick look at StackOverflow and other sources shows you can't do this natively either (without creative hacks, like making your app a Launcher to replace the default Android OS launcher).
From an app design perspective, why are you trying to prevent both a Back and Home operation? You could prevent the user from leaving your app, which would not be good.
Your Answer
Think you can help? Login to answer this question!