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
By calling stopSelf(), the service stops.
stopSelf()
Please make sure that no thread is running in the background which makes you feel that the service hasn't stopped.
Add print statements within your thread.
Hope this helps.