You will have to have the main test thread wait for a response from
the server test thread.  If you are waiting for a callback with the
response, that callback should notify the main thread which needs to
be waiting on that signal.  Pick your favorite thread sync mechanism
(Semaphore, CountDownLatch, etc).  Or if you are just waiting for the
server request thread to end, just join with it and report the
results.

By the way, this is not at all an Android issue, this is a general
Java threading issue, so you may just want to become familiar with
Java threading and synchronization in general.

Doug

-- 
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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to