22.12.2010 22:15, Mark Murphy пишет:
activity run on the main application thread (which you are blocking)
Mark,
I don't believe this is the case. In fact, Schoel wrote this in his original message:
I've checked the thread id of the thread in which queryUserSave is called and the thread id in which the QueryUserSaveActivity is started (if I don't use any semaphores) and they are not the same.
Since activity always run on the UI thread, the above implies that the original entry point into the code, queryUserSave, is called on a background thread.
A background thread, unlike the UI thread, can be blocked as necessary, using wait() or other means, until it's time for it continue.
-- Kostya -- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com -- 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

