I am trying some thing new on Android for which I need to access the handler of the UI thread.
I know the following:
- The UI thread has its own handler and looper
- Any message will be put into the message queue of the UI thread
- The looper picks up the event and passed it to the handler
- The handler handles the message and sends the specfic event to the UI
I want to have my service which has to get the UI thread handler and put a message into this handler. So that this message will be processed and will be issued to the UI. Here the service will be a normal service which will be started by some application.
I would like to know if this is possible. If so please suggest some code snippets, so that I can try it.
Regards Girish