I have successfully created .vcf file for the all contacts from my android device. I have referred below link for doing so :
Export the Contacts as VCF file
and its working quite good. But, I need to convert a single contact to single .vcf file as per my requirement.
In this current code getting all the contacts using below lines :
cursor = getContentResolver().query(ContactsContract.CommonDataKinds.Phone.CONTENT_URI, null, null, null, null);
and then all contacts will be covered in .vcf file.
So, What is way that I can generate .vcf file for a single contact ?