eidylon
eidylon

Reputation: 7238

How to put contacts on the android emulator?

I'm trying to write my first android app. It deals with contacts and contact groups. In order to test on the emulator, I'm trying to add contacts with groups to the emulator. If I try to add them manually, it goes through the whole contact dialog, I click done and it goes away but doesn't actually save the contact.

I tried syncing the phone to a test gmail account, but after poking around, I see that doesn't work either because of an issue with needing a unique IMEI number.

So I found a thread which said create the contacts in gmail.com, then export them to a vcf file and use adb to push them to the emulator and then import them into Contacts. I tried this, the file copied over okay, and I ran the import, which showed a progress bar and the contact names being imported. It looked like it worked, but then it goes back to Contacts and did not actually save them into the database.

So, is there ANY way to add contacts with groups into the emulator? Or do I need to build the apk and test it actually on my phone?

Upvotes: 4

Views: 13294

Answers (2)

armknp
armknp

Reputation: 21

There is another thing that might hide your contact. I have to change display option to show all contact.

Upvotes: 2

Markus
Markus

Reputation: 5797

Check you've a virtual sdcard in your emulator (= created a device with an virtual sdcard). Your error might be because your emulator cannot store the data because of a missing sdcard.

Upvotes: 0

Related Questions