On Fri, Jun 3, 2011 at 11:33 AM, Chris <crehb...@gmail.com> wrote: > Using a static helper inner-class that constructs and holds your singleton > eliminates the synchronization overhead and is safe and works across JVM > versions. This is the initialization on-demand holder pattern.
But that's not possible when you need a Context. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 3.0 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 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