I have some classes within my application that need to call Android functions that require the Context as a parameter. I don\'t have it as the class is not a subclass of the
I've answered this question here also.
You can do that using ContextWrapper, as described here.
ContextWrapper
For example:
public class MyContextWrapper extends ContextWrapper { public MyContextWrapper(Context base) { super(base); } }
and use that class as it were Context