Quantcast
Viewing all articles
Browse latest Browse all 8068

Android Module fireEvent not always working

I am working on an Android Module and in this module I make use of eventlisteners. As the information about modules describes, I fire the read-event like this:

fireEvent('read', data);

and in javascript I attach my eventlistener like this:

myModule.addEventListener('read', function(x) {
    Ti.API.info("reading..");
})
I am quite sure my implementation is correct, since the first 2-3 times this works perfectly. However after the 3th time firing the "read" event, the callback is not triggered. I also know that the problem is not located before the firing of the event or in the callback itself, because I have already logged everything. Does anybody know of instablities concerning the eventlisteners? Thanks

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>