This sample code demostrate how to get contact data from Contact Provider and store in application database.