Bulk import contacts contacts into the Android emulator

Source: Internet
Author: User
Tags vcard

To bulk import contacts in the Android emulator using the ADB command:

Using the commands provided by ADB, you can easily import contacts from your PC into the Android emulator in batches.

You first have to prepare a fixed-format VCF file, which is the Address Book store format file in Android.

The format is as follows:

BEGIN:VCARDVERSION:2.1N:; QiQi;;; Fn:qiqitel; Home:7474email; HOME:qiqi.comADR; HOME:;; QiQi;;;; END:VCARDBEGIN:VCARDVERSION:2.1N:; Re;;; Fn:retel; Home:73email; HOME:re.comADR; HOME:;; Re;;;; END:VCARDBEGIN:VCARDVERSION:2.1N:; Staill;;; Fn:stailltel; Home:782-455email; HOME:staill.comADR; HOME:;; Staill;;;; END:VCARDBEGIN:VCARDVERSION:2.1N:; Tian;;; Fn:tiantel; Home:8426email; HOME:tian.comADR; HOME:;; Tian;;;; END:VCARDBEGIN:VCARDVERSION:2.1N:; Uuu;;; Fn:uuutel; Home:888email; HOME:uuu.comADR; HOME:;; Uuu;;;; END:VCARDBEGIN:VCARDVERSION:2.1N:; Victory;;; Fn:victorytel; Home:842-8679email; HOME:victory.comADR; HOME:;; Victory;;;; End:vcard

The imported commands are as follows:

1 //Clear the contacts of the original contacts.2 3Adb-s emulator-5554Shell pm Clear com.android.providers.contacts4 5 6 //CONTACTS.VCF The correct format of the contacts file into the Android emulator and wait for the emulator to refresh for a few seconds7 8Adb-s emulator-5555Push contacts.vcf/sdcard/CONTACTS.VCF9 Ten  One //from the file, import the contacts into the Address Book of the Android emulator, and the process will be time dependent on the number of contacts.  A  -Adb-s emulator-5554Shell am START-T"Text/x-vcard"-D"FILE:///SDCARD/CONTACTS.VCF"-A Android.intent.action.VIEW com.android.contacts
View Code

Bulk import contacts contacts into the Android emulator

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.