Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (ti.api.info)
Viewing all articles
Browse latest Browse all 17

Ti.API not available in eventHandler callback ?!?

$
0
0

Hello,

here is the code:

win.addEventListener('android:back', function(e) {
    Ti.API.Info("Please don't close!!!");
});
Attached to a window object of course. When I hit the back button, the event get triggered but I get that error:

TypeError: Cannot find function Info in object [Ti.API]


Viewing all articles
Browse latest Browse all 17

Trending Articles