Hi ,
I thought I'd get at least a mail if I get a reply :)

I solved this issue, the main things were : 

   - make sure mHandler.post() ( replaced runOnUiThread  ) references UI 
   thread by being instanciated in onCreate()
   - the handling of incoming packets was correct, however, I send out the 
   reply in yet another thread ( xmpp result for the IQ), so in many cases the 
   replay thread was faster then the gui or the other way round. So i just 
   added :   "connection.sendPacket(reply);" in the same .post(...) part where 
   the I manipulate the GUI and when that finishes reply gets send and the 
   sending client receives the reply and sends the next package, but not 
   sooner.
   
Regards

-- 
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

Reply via email to