I had a question on this, for me it doesn't look like this will work. If this has worked for you I am very interested; normally in java the static call can be made before the constructor is run, so unless the container is somehow instantiating the class(or some other class is at runtime), the call to getContext() should always return null. And if another class is instantiating it, how can you be sure that this has already run before you try to use this method?
I just wanted to be sure I am understanding this correctly. So in your application in one of your starting activities, you are instantiating this(which then sets the static context variable), correct? This is something that I have been struggling with, since I really don't see where the primary thread starts in an android app, since the various intents and activities can be invoked by other applications at any time(at least this is my understanding).
I am pretty new to android, so if I am not getting it or have some fundamental flaw in how I think this works, please let me know.