简体   繁体   English

Android Java添加编辑联系人谷歌帐户

[英]android java add edit contacts google accounts

I want to access (add, edit) contacts of Google accounts on an android device. 我想访问(添加,编辑)Android设备上的Google帐户的联系人。 I'm using Android Studio. 我正在使用Android Studio。 I've found couple posts on http://stackoverflow.com : 我在http://stackoverflow.com上找到了几个帖子:

Android - sync contact add programatically to google account Android-同步联系人以编程方式添加到Google帐户

Xml model for adding contact to google contacts 用于将联系人添加到Google联系人的XML模型

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. 但是,首先提到问题而没有答案,其次仅提及部分代码,并且如果设备上存在Sereral,则两者均未显示如何选择帐户。

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? 我预见这可能是一个广泛的问题,但是,如果可以,请通过Google API或其他方式建议如何以更少的代码和设置(例如Maven或jar库或其他)以及特定的代码示例完成我的任务?

I think you'll be better off delegating this kind of work to the system, using Intents. 我认为您最好使用Intent将这类工作委派给系统。 You can have a look at how Google recommends to do it here 您可以在此处查看Google建议如何做

I hope this helps! 我希望这有帮助!

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 阅读Android通讯录并进行编辑,然后使用Java在Android中将其导出为vcf - Read Android Contacts and Edit it and export it as vcf in Android using java 创建一个可让您添加联系人和产品,然后在自定义列表视图中查看它们的Android应用(Android Studio)(java) - Creating an android app that lets you add contacts and products and then view them in a custom listview (Android Studio)(java) 在Google应用引擎java本地数据存储区中添加/编辑实体 - Add/Edit Entities in google app engine java local datastore 如何验证Google Contacts API的Java应用程序? - How to authenticate a java application for the Google Contacts API? 使用Java和OAuth 2.0连接到Google联系人 - Using Java and OAuth 2.0 to Connect to Google Contacts Android / Java-使用SharedPreferences进行,编辑和添加到数字值 - Android/Java - Using SharedPreferences to make, edit, add to a number value 在 Android 中获取用户的“其他”谷歌联系人 - Fetching a user's "other" Google contacts in Android 我想在android java中动态添加不超过5个编辑文本的编辑文本 - I want to add Edit Text dynamically not more not less than 5 Edit Texts in android java 基于Java的Google App Engine和Google Drive API(用于服务帐户) - Java based Google App Engine and Google Drive API for Service Accounts 如何使用Google API Java客户端对联系人进行部分更新? - How to do a partial update on contacts using Google API Java client?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM