Closed ashishkumawat closed 5 years ago
same here -_-
I can't imagine these guys have so little idea what they're doing that they decided to not include a stop code anywhere. I mean, ok, you define it when you start it, but what if I wanted to finish it earlier? Not cool bro
ptal at these elements: https://developer.android.com/guide/components/services#Lifecycle
and the example here: https://stackoverflow.com/questions/4748964/android-cancel-asynctask-forcefully
Both offer strategies to stop your service if you want.
Closing this as FJD is deprecated and so we won't be adding an additional api for this.
Not found any solution to stop service from activity like on click of button.