5

I am trying to launch an application after successful saving of contact in androids in built contact Phone book. so I want to know ,is there any Broadcast Receiver for updation in phonebook and addition of new contact in phonebook.

Or any other way to find the event of addition or updation in phonebook.

GOLDEE
  • 2,318
  • 3
  • 25
  • 49

1 Answers1

6

You have to implement an Android Service and register an observer to the list of Contact, you can refer to this question to receive change event on the phonebookContact Change. After that you can start you application. You can make your service run on device restart by using brodcast receiver for boot.

Community
  • 1
  • 1
Anis BEN NSIR
  • 2,555
  • 20
  • 29
  • 2
    Observer only use when application running, how to know when application is closed, I don't want to continuously running background service. Is Can i create Broadcast for that. – Mansukh Ahir Feb 18 '16 at 06:30