Janne
Janne

Reputation: 3767

Reacting to new contacts in Android Contacts application

I would like to perform a certain operation every time a user adds a new contact in the Android Contacts application. It would include using the new contact's information.

Is there an easy way to do this? Is there some event that can be listened for or do I have to extend the Contacts application itself? Or should I just think of some other approach if this is not feasible.

Upvotes: 4

Views: 1854

Answers (1)

snctln
snctln

Reputation: 12225

It looks like your best course of action on this is to run a lightweight background service that uses a content observer for the contacts data because there is no intent that is publicly broadcasted when a new contact is entered. A much more detailed discussion of this idea can be found on the android-developers google group site.

Upvotes: 6

Related Questions