What\'s the difference in calling stopSelf() , stopSelf(int) or stopService(new Intent(this,MyServiceClass.class)) inside
stopSelf()
stopSelf(int)
stopService(new Intent(this,MyServiceClass.class))
There are two flavors of stopSelf(). One takes a startId parameter, to indicate that you have completed work on one specific command, and so the service should opportunistically stop if there are no other outstanding commands.
startId