If its an android application, there is something called as content provider/content resolver (a component providing information of one application to another, ex: for the first time when we install Whatsapp, it will ask us, if it can use contact information from our contacts application). Using this, you can access all the contacts and check if a number exists (Need to add permissions in manifest file)