Import iPhone address book to e71

Source: Internet
Author: User

the mobile phone adds a connection card. If you want to use a mobile card on the e71, you need to transfer the iPhone's address book to e71, I used to know how to export data from the iPhone in VCF format, and then put it in the other/address directory of the memory card of e71. I first used the 91 assistant to export the iPhone Address Book as VCF, and then found that the e71 was imported into Garbled text, and carefully compared it to the character encoding problem in the text. I also used itools to export the iPhone address book and found that the character encoding problem was gone. However, the itools file is an overall VCF file, so that the e71 is still incomplete, so I tried to separate it from the VCF exported by itools. According to the VCF format, I wrote a simple Java Code for segmentation as follows, then copy it to the corresponding location of the memory card of e71. The Code is as follows:

Public static void main (string [] ARGs) throws exception {string Path = "C: \ contacts. VCF "; bufferedreader BR = new bufferedreader (New inputstreamreader (New fileinputstream (PATH)," UTF-8 "); string STR =" "; stringbuffer sb = new stringbuffer (); int I = 0; while (STR = BR. readline ())! = NULL) {I ++; sb. append (STR ). append (system. getproperty ("line. separator "); If (Str. trim (). equals ("end: vCard") {// Write File fileoutputstream Fos = new fileoutputstream ("C: \ Tel \" + I + ". VCF "); outputstreamwriter OSW = new outputstreamwriter (FOS," UTF-8 "); OSW. write (sb. tostring (); OSW. flush (); sb = new stringbuffer () ;}} system. out. println ("end... ");}

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.