android - Send data from seperate thread within a service to service Class -


can suggest me tutorial explains on how send data android seperate thread class within service class -----> sends data to------> service oncreate() method.

the thread can timertask or thread class or kind threads within service class

i'm not sure understood when

data to------> service oncreate()

however, need use handler created inside service's oncreate method , pass thread. posting runnable handler thread result in executing runnable in ui thread (which thread service running on).


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -