how to create one .vcf file for all the contact in android

前端 未结 1 1853
一个人的身影
一个人的身影 2020-12-20 06:08

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..

         


        
相关标签:
1条回答
  • 2020-12-20 06:40

    You are overwriting the file for each contact.

    Pass true as second parameter to new FileOutputStream(...) in order to append to the file.

    Better yet, do not re-open the file for each write in the loop.

    0 讨论(0)
提交回复
热议问题