I have a service running, and would like to send a notification. Too bad, the notification object requires a Context, like an Activity, and not a Service.
Do you know any way to by pass that ? I tried to create an Activity for each notification but it seems ugly, and I can’t find a way to launch an Activity without any View.
Both
ActivityandServiceactuallyextendContextso you can simply usethisas yourContextwithin yourService.