So the question is, is it really possible to access Context, Application and specially Activity anywhere. Like as in other static class methods without passing parameters?
Eg:
public static class YOUR_CLASS{
public static void YOUR_FUNCTION(){
Application app = /* GET APPLICATION */;
Activity act = /* GET ACTIVITY */;
Context c = /* GET CONTEXT */;
// USE THEM
}
}
Yes it's possible like this: