Events and handlers, EventBus in Java -


hi guys have question, googled didn't find interesting.

i have 2 threads in java, 1 in background 1 in foreground (ui). when backgrounds' threads changes state of gui variable send asynchronous event. exists events, handlers, these staff need implemented.

does exist shorter way pass event eventbus in android?

thank you!

you can try google guava event bus

the following simple example

http://javarticles.com/2015/04/guava-eventbus-examples.html


Comments