Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Importing gmail contacts on android emulator

I want to import contacts from my gmail account on android emulator in the same way you can do it on T-Mobile G1 phone.

Is it possible?

[I have this question too: pentium10]
I am wondering if there is a way to do all this?

like image 954
Jiri Avatar asked Jul 11 '09 16:07

Jiri


2 Answers

I don't know about setting up a permanent sync, but you can do a one-time import of your contacts relatively simply.

Go to your gmail account using a web browser, click 'contacts' on the left sidebar. Select all the contacts you want on your phone, and choose to export them in vCard format. This will download a *.vcf file to your computer containing the contacts.

Push the vcf file to the SD card on your emulator, like so:

$ adb push contacts.vcf /sdcard/contacts.vcf
$ adb sync

Then open the contacts app on the emulator, and hit menu, import. Choose to import from SD card, and the vCard file will be found and your contacts imported.

like image 153
Hamy Avatar answered Sep 22 '22 16:09

Hamy


You simply can drag&drop it into the File Explorer view in DDMS. Use a destination folder, which can be accessed by your app or the contacts-app. That worked for me.

like image 45
JavaDM Avatar answered Sep 20 '22 16:09

JavaDM