[android-developers] Smack xmpp / Handler question

2010-10-07 Thread Federico Paolinelli
Have anybody tried it? I am doing some experiments, and I saw that: - connect / login are executed in the same thread of the caller, then are blocking - The packetlistener callbacks are called from smack receiver thread - The sendpacket enqueues the message to a queue Now my question: when I

Re: [android-developers] Smack xmpp / Handler question

2010-10-07 Thread Kostya Vasilyev
Put the data into the instance of Runnable subclass you pass to handler. Something like this: private static class WorkerRunnable implements Runnable { ToastRunnable(data goes here) { mData1 = data1; mData2 = data2; ... } @Override public void run() { mData1, mData2 are accessible here }

Re: [android-developers] Smack xmpp / Handler question

2010-10-07 Thread Federico Paolinelli
Thanks a lot. Federico On Thu, Oct 7, 2010 at 2:36 PM, Kostya Vasilyev kmans...@gmail.com wrote:  Put the data into the instance of Runnable subclass you pass to handler. Something like this: private static class WorkerRunnable implements Runnable { ToastRunnable(data goes here) { mData1