On Thu, Jan 6, 2011 at 6:53 PM, Chris <[email protected]> wrote: > This is probably a "newbish" question but let's say i'm in Thread B > and I need to do something on my UI Thread (Thread A) but it's > critical that B doesn't continue to execute until A has gotten around > to actually handling my request.
Pro tip: don't do this. > ...but i want to wait for that call to actually go through. What are > some ways of doing this? There are plenty of Java synchronization options (the wait()/notify() that TreKing pointed out, plus all the stuff in java.util.concurrent). That being said, I am dubious that this is a good idea in the first place. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.3 Programming Books: http://commonsware.com/books -- 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

