0

I need to get notified when phone contacts changed, even if my app is closed. how to do?

In my code I am starting service with START_STICKY in splash screen, but when I close the app, service also starting again.

When I change in contacts, ContentObserver class's onchange called multiple times.

And some time onchange is not being called. So how to achieve solution?

cygery
  • 2,309
  • 3
  • 18
  • 25
Mind Android
  • 558
  • 2
  • 9
  • 27

1 Answers1

0

you can call your service at start up when boot completed message broadcast by android.

as explained in here Start service on boot

Community
  • 1
  • 1
Abbas Elmas
  • 422
  • 6
  • 16