What\'s the difference in calling
stopSelf()
, stopSelf(int)
or stopService(new Intent(this,MyServiceClass.class))
inside
Here's a simplified description:
stopSelf()
is used to always stop the current service.
stopSelf(int startId)
is also used to stop the current service, but only if startId was the ID specified the last time the service was started.
stopService(Intent service)
is used to stop services, but from outside the service to be stopped.
This is the reference page.