4

As we all know that, when we click the option "export to SD card" in contacts, , It means we are creating our contact backup and that file is stored with the extension as a .VCF file format, Later on when we import that file, android OS automatically takes all the contacts in it and saves in our contacts. I just want to create that .VCF (A Contacts backup file) using code.

Caution Continues
  • 743
  • 2
  • 10
  • 25

1 Answers1

0

vcardio is an open-source application that does exactly what you've put as your description. I'd check it out and tweak it if necessary.

hd1
  • 33,938
  • 5
  • 80
  • 91
  • Dear HD1, you can go through my edited code on this link, Its 200% working for getting all the contacts in .VCF file Link : http://stackoverflow.com/questions/8147563/export-the-contacts-as-vcf-file/13560584#13560584 – Caution Continues Nov 27 '12 at 04:25
  • Aside from the mathematical impossibility of a probability of "200%", thank you for the code sample, except I wasn't the one asking the question. Leave it as an answer for OP to accept. – hd1 Nov 27 '12 at 04:28
  • This is new era when people can cheat for more than 1000 crore...then sure I can guarantee for 200%....and as we are engineers.....anything is possible...Proud to be Engineer... :):):).. – Caution Continues Nov 27 '12 at 04:31
  • Sorry, mate, outside India, people don't cheat. – hd1 Nov 27 '12 at 05:13
  • That's really true..Agree.. :(:(:( – Caution Continues Nov 27 '12 at 05:32