Ok, this issue is resolved. To get access to the context before getActivity() has been called you need to call this function:
Context context = this.getInstrumentation().getTargetContext().getApplicationContext();
Ok, this issue is resolved. To get access to the context before getActivity() has been called you need to call this function:
Context context = this.getInstrumentation().getTargetContext().getApplicationContext();