Skip to content Skip to sidebar Skip to footer

Android:back (device Back Button) Event In Titanium Not Working

Hi i am working on android application development.I am using Titanium studio for development. I create a simple application.I want to capture the device back button event in my ap

Solution 1:

You have to cancel the bubble of the event.

mainWindow.addEventListener('android:back', function(e) {
    e.cancelBubble = true;

    Ti.App.fireEvent('android_back_button');
});

Post a Comment for "Android:back (device Back Button) Event In Titanium Not Working"