1

I have two services. One of handles receiving call states. Other handles an overlay window.

My problem is I can't keep services running. I could refactor receiving call states service. It gets each states changes and runs like new jobs. But other one which shows overlay, I can't do the same. I need to keep overlay windows reference somewhere, and i don't want to do it. I need to keep that service running. I've tried to use isStopped method. This doesn't work how I need. I can also add while loop in onHandleWork, but it doesn't look like a proper solution. Could someone have a better idea for keeping services running on Android 8?

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
atasoyh
  • 3,045
  • 6
  • 31
  • 57

0 Answers0