There could be a service that runs in the background and sends out broadcast events, so that developers don't have to handle with threads.
There could be a service that runs in the background and sends out broadcast events, so that developers don't have to handle with threads.