I think you mentioned the solution yourself: create a thread. Are you worried about the overhead of creating a thread?
On Apr 5, 11:07 pm, "E.D.I" <[EMAIL PROTECTED]> wrote: > How to create a thread that waits for an answer from a certain port > ( from external server ) ? > in fact i'm trying to comunicate with a server on and of with sql > queries... > open connection send query... > wait for answer in the background and continue working , and when > geting the answer i want to > update my local DB still in the background and then close > connection... > how can i do it .., in the most eficient and way....thnx in advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---