Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top