Respond to new contacts in the Contacts for Android app

I would like to perform a certain operation every time a user adds a new contact to the Android Contacts application. It will include the use of new contact information.

Is there an easy way to do this? Is there any event that I can listen to, or do I need to expand the Contacts application? Or should I just think of some other approach, if that is not possible.

+4
source share
1 answer

It seems like your best way of doing this is to start a light background service that uses a content observer for these contacts, because there it is not an intention that is publicly broadcast when a new contact is entered. A more detailed discussion of this idea can be found on the google-site group of Android developers .

+6
source

Source: https://habr.com/ru/post/1286400/


All Articles