I am trying to build an app that exports and restores the contacts as a vcf file. I found some code around such as
how to backup contacts or sms to SD card as .xml file or .csv file and restore it later backup-contacts-or-sms-to-sd-card-as-xml-file-or-csv-file-and-restore-i
Export the Contacts as VCF file
But nothing works i get all sorts of errors. Can anyone please share a working code? Please do not mark as duplicate i am aware that it has been discussed here but the codes are not working