0
score
898
views
no
status
CC BY-SA 3.0
get the context from an non-activity class into a non-activity
You should pass the context to the constructor or method you are calling. Edit: Just for fun, you can actually get the application context in a static way. This is not recommended: