简体   繁体   中英

android java add edit contacts google accounts

I want to access (add, edit) contacts of Google accounts on an android device. I'm using Android Studio. I've found couple posts on http://stackoverflow.com :

Android - sync contact add programatically to google account

Xml model for adding contact to google contacts

However, first mentions problem and have no answer, second has only some parts of code and both do not show how to choose account if there are sereral on a device.

I foresee it could be considered broad question, however, if OK, please advice how to do my task with less code and setup (eg Maven or jar libraries or else) and with specific code samples - via Google API or some other way?

I think you'll be better off delegating this kind of work to the system, using Intents. You can have a look at how Google recommends to do it here

I hope this helps!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM