java – When you create a contact in the android execute a certain action

I have created an application that shows all the contacts and sends it to the database, but now I want that every time the user creates a new contact, it is automatically sent to the database. But I do not know how to do exactly so that every time a new contact is added he sends it to the db. If anyone can help me thanks.