Android的联系人自定义字段 [英] Android contacts custom field

查看:187
本文介绍了Android的联系人自定义字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能无需编写同步适配器,身份验证和同步服务,自定义字段添加到一些接触,用定制MIMETYPE(如Facebook的个人主页)?我不希望添加同步功能,我的应用程序。

Is it possible to add custom field to some contacts, with custom mimetype (like facebook profile) without writing sync adapter, authenticator and sync service? I do not want to add "synchronization" functionality for my application.

推荐答案

长期的研究后,我认为我找到了这个问题的答案。

After long research I think that I found an answer to this question.

有没有办法不写一些同步服务code,身份验证和syncAdapter创建自定义点击的,可见的领域。

There is no way of creating custom clickable and visible fields without writing some Synchronization service code, authenticator and syncAdapter.

下面是一个示例code这是增加新的账户账户和同步,并添加自定义字段,这可以从目前的项目的一些活动被视为新联系人: https://github.com/nemezis/SampleContacts

Here is sample code which is adding new account to "Accounts and synchronization", and adding new contact with custom field, which can be viewed in some activity from current project: https://github.com/nemezis/SampleContacts.

这篇关于Android的联系人自定义字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆