-1

In Kotlin android there were services, which work for older android versions, then there are background and foreground services. What are the differences? If I created an app with an old service will it work on new phones? I use my service for stopper working in the background with notification, maybe I should use something else?

Sweta Jain
  • 1,884
  • 2
  • 14
  • 34

1 Answers1

0

This stackoverflow link should answer your question Timer in Background

You can also use this approach by creating a CountDownTimer extending a Service Class. You can reuse it at multiple instances. Android count down timer in background

Mohit Ajwani
  • 1,304
  • 12
  • 23