try using broadcastReceivers on both activities. create a thread in the application context, and when it's done processing the socket broadcast an intent.
On Mon, Jul 26, 2010 at 3:38 AM, zj h <[email protected]> wrote: > Assume that there activity A and B, A has a handler, now B is activate > by A, how can i pass the handler to B? > Currently i have a thread receive messages from socket, and dispatch > messages to A and B, I think when B is activated, pass handler to B, > then the handler can receive message from the thread. But I don't know > how to do. > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

