0

In Android, is there any way to run multiple instances of the same service?

If it is possible, how can you prevent multiple instances?

Trevor
  • 1,033
  • 8
  • 15
  • 1
    If you literally mean the same subclass of `Service`, then no. Only one instance of a `Service` will be running at a time in an app. – CommonsWare Mar 26 '20 at 17:16
  • But you can call same service multiple times.. – jaffar Mar 26 '20 at 19:00
  • you can prevent multiple instances by checking service is running Or not... https://stackoverflow.com/a/5921190/2293855 – jaffar Mar 26 '20 at 19:01

0 Answers0