So I understand the service lifecycle and all that. But I'm confused what the startId
parameter is for?
public int onStartCommand (Intent intent, int flags, int startId)
I get that it's used in conjunction with stopSelf(int)
, but I don't see what the point is or where the startId is being generated. What use case would using stopSelf(int) fall under?