[android-porting] Synchronisation in ApplicationContext

2011-04-24 Thread Dudero
Hello, I want to add my Manager into the ApplicationContext, to get it via getSystemService(Context.MY_SERVICE). /frameworks/base/core/java/android/app/ApplicationContext.java So I added a getMyManager-method like the others, but I do not understand the difference between the "sSync" and "mSync"

Re: [android-porting] Synchronisation in ApplicationContext

2011-04-25 Thread Dianne Hackborn
sSync is for the variables that are static, mSync are for the variables that are per-Context-instance. That is, these are for the corresponding variables with the same prefix. On Sun, Apr 24, 2011 at 4:53 AM, Dudero wrote: > Hello, > > I want to add my Manager into the ApplicationContext, to ge