I have created a class that extends IntentService, and I would like to start the service from a class that is not an Activity, therefore, I do not have access to a Context object. I could not find an example of this in the documentation or the web. Is it possible ?
Share
You will need to pass current Activity context to non Activity class for starting service from non-activity class as:
and pass current context as: