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
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,
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
3 matches
Mail list logo