Quantcast
Viewing all articles
Browse latest Browse all 8

[Android] Ti.App.fireEvent not detected on some devices

I am testing my application on Android devices, and while it works perfectly on one device, there is another device that does not detect an event. The code is pretty simple:

//app.js
Ti.App.addEventListener('loggedIn', AppListener.loggedIn);
 
//in my Login window code
Ti.App.fireEvent('loggedIn');
I have put debug statements in my code to confirm that the event is being fired, but the event listener code never gets called.

Let me stress that this works fine on other devices, so the code itself is not broken. Does anyone have a guess what might cause a specific device to not detect a fired event?

I am using 1.4.2. The problematic device is a Motorola Droid A855, with Android version 2.2.1 and Kernel version 2.6.32.9. The device that works fine is an HTC G1 (dream), and it has the same Android version and Kernel version.


Viewing all articles
Browse latest Browse all 8

Trending Articles