Hello,

Is there any way to fire custom events in android. I have had experience 
with custom events in GWT and in the javascript world and that model is nice 
to say the least. Is there anything like that in Android? for example, lets 
say a user clicks a button on the screen, then my app might want to do 2 or 
3 different & independent things. 1) get data from server 2) update local 
database 3) show a new screen on the UI. If I have an event driven model 
such as the one available in a javascript engine web browser, i could fire 3 
events on an event bus and then 3 independent handlers/listeners could 
initiate those 3 sequences. This allows for separation of concerns in design 
and allows a few other beneficial design mechanisms. I can see some of that 
being done with Intents, however, Intent looks like a bigger tool than just 
events. Specifically, intents seem to apply across apps and seem to be 
intended for a higher purpose. (Did I read that right?).

So, is there any way to fire events on an event bus in Android then?

Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to