开发者

Add a contact to android emulator

开发者 https://www.devze.com 2022-12-22 17:32 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消