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