How to get Context when you call a method in a different class?

Viewed 11085

So basically, I have a method that requires a Context in order to perform several tasks.

public void openDatePicker() { Context c; }

I want to know, how to define a context of the method caller so I don't have to insert it as a parameter each time I call the method.

4 Answers
Related