i want to crate one .vcf for all contact using below code . the below code is work fine to crate .vcf file but it storing only one contact. please help me..
You are overwriting the file for each contact.
Pass true as second parameter to new FileOutputStream(...) in order to append to the file.
true
new FileOutputStream(...)
Better yet, do not re-open the file for each write in the loop.