Re: [android-developers] pass handler to another activity

2010-07-27 Thread Agus
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 wrote: > Assume that there activity A and B, A has a handler, now B is activate > by A, how can i pass t

Re: [android-developers] pass handler to another activity

2010-07-27 Thread TreKing
On Mon, Jul 26, 2010 at 5:38 AM, zj h 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? > You don't. > Currently i have a thread receive messages from socket, and dispatch > messages to A and B, I think when B is activated,

[android-developers] pass handler to another activity

2010-07-27 Thread zj h
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 threa