How to set contacts on Android emulator?

I am trying to write my first Android app. It relates to contacts and contact groups. To test the emulator, I am trying to add contacts with groups to the emulator. If I try to add them manually, it will go through the entire contacts dialog, I click done , and it leaves, but actually does not save the contact.

I tried to synchronize the phone with the test gmail account, but after I cried out, I see that this does not work due to a problem with the need for a unique IMEI number.

So, I found a thread that said to create contacts in gmail.com and 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 everything in order, and I started the import, which showed a progress bar and the imported contact names. It seems like it worked, but then it goes back to Contactsand does not actually save them in the database.

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

+3
source share
2 answers

, SD- (= SD-). , , - SD-.

0

, . , .

+2

Source: https://habr.com/ru/post/1788655/


All Articles