Add a contact to android emulator
My issue is quite simple I think :
I would like to be able to add a contact to the contact list by a simple click on a button (and be able to test it on the emulator). The data of this contact would be stored in the source code 开发者_开发问答of the application. is there an easy way of doing that?
thank you for your answers
The only easy way to insert a contact is to use an INSERT
action, where you supply some of the data and start up an activity for the user to provide the rest and confirm adding it to the contacts list. Here is a sample project demonstrating this.
精彩评论