Its really not android specific, just best practices when dealing with 
synchronized access to singleton objects.

Dianne, thanks for the example but maybe I misunderstood Mark's post about 
static holders and Contexts.  I thought he meant, and I was seeking an 
example where the Context itself is the singleton which, except for eg. an 
Application context doesn't seem to make much sense.  But I don't do much 
with services so maybe I'm missing some common patterns in Android.

Good thread nonetheless.  New programmers thrust into a multithreaded 
framework should at least know that synchronization is critical.

-- 
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

Reply via email to