How to get Context in an Intent Service
Solution 1:
So my question is how do I get the context in an IntentService?
The IntentService
is the Context
, as IntentService
inherits from Context
.
Solution 2:
Just call getApplicationContext()
So my question is how do I get the context in an IntentService?
The IntentService
is the Context
, as IntentService
inherits from Context
.
Just call getApplicationContext()