I start a service in an activity then I want the service to stop itself after a while.
I called stopSelf() in the service but it doesn\'t work.
How to make t
I know this is an old question, but in my case (floating window as service) I had to remove the view first, and then call stopSelf().
stopSelf()
windowManager.removeView(floatingView); stopSelf();