I'd like the following behavior: The user clicks a notification and Android stops my Service.
The problem is that stopping a Service requires a call to stopService and I cannot easily create a PendingIntent that does that.
So the only way I found to do this is to have my Service receive a special Intent extra that causes the Service to call stopSelf and stop.
Is there a simpler way to directly cancel a Service from a notification click?