• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help Accessing UI thread handler from a service

hi all,
I am trying some thing new on Android for which I need to access the handler of the UI thread.
I know the following:
  1. The UI thread has its own handler and looper
  2. Any message will be put into the message queue of the UI thread
  3. The looper picks up the event and passed it to the handler
  4. 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
Mahes.
 
hi all,
I am trying some thing new on Android for which I need to access the handler of the UI thread.
I know the following:
  1. The UI thread has its own handler and looper
  2. Any message will be put into the message queue of the UI thread
  3. The looper picks up the event and passed it to the handler
  4. 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
Mahes.

I would suggest posting this stuff probably on XDA. The developers website.

Android Forums & Windows Phone Discussion @ xda-developers

More developers over there.

Or even on our Applications portion of our website:

http://androidforums.com/android-applications/
 
Back
Top Bottom