0

Is there an Android Intent that indicates my background services (or main process) were killed? For example, due to low system memory etc.

I would like to have them restarted if they are killed.

OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
KJAN
  • 227
  • 4
  • 15

1 Answers1

0

You can start the service again in onDestroy() of the service.
Or you can return START_STICKY from onStartCommand() of the service.

Abhijit
  • 95
  • 5