Question about start condition on receiver
Closed this issue · 1 comments
samuelebistoletti commented
Hi,
this condition:
if (intent.action == Intent.ACTION_BOOT_COMPLETED && getServiceState(context) == ServiceState.STARTED)
shouldn't be:
if (intent.action == Intent.ACTION_BOOT_COMPLETED && getServiceState(context) == ServiceState.STOPPED)
So if the service is stopped than start it?
Thanks
samuelebistoletti commented
Understood why