hi mate i have one thread S and n thread C .
C send request to S ,using sendMessage(msg) on Handler of S.
Every client C1…CN have a private handler.
S receive message on his handler, elaborate the request and want to send the response with sendMessage(risp) on the private handler of specified client. But How can he know what is the handler where C will wait response ? Client C can insert in the request message a refer to his handler where receive response ?
hi mate i have one thread S and n thread C . C send
Share
When sending your message set its
replyTofield:Then you can reply like this:
See
replyTodoc at http://developer.android.com/reference/android/os/Message.html