I'm using commonsware's wakefulintentservice in my application and I got it working, but how do I know if the WakefulIntentService is still running or not?
If you mean "is it ever running", you see whether the work that it is supposed to do is getting done.
If you mean "is it running right this moment", examine your threads in DDMS, I suppose. I have never really worried about this question.
Can I for example put a onDestroy in the WakefulIntentService class and let that log something
Sure.
UPDATE
Also, adb shell dumpsys activity services
will list the active services. I have not tried this with a WakefulIntentService
, but AFAIK it should show up there.