Tuesday, November 16, 2010

[android-developers] Re: Thread handling problem in Test Case

Thanks Doug, :)

On Nov 16, 12:28 pm, Doug <beafd...@gmail.com> wrote:
> 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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate