大佬教程收集整理的这篇文章主要介绍了Android联系人未显示我的自定义account_type,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
这是我的同步适配器
<sync-adapter xmlns:android="http://scheR_569_11845@as.android.com/apk/res/android" android:contentAuthority="com.android.contacts" android:accountType="com.axonsystem.kangoosave" android:u@R_944_9260@sible="true" android:allowParallelSyncs="false" android:isAlwaysSyncable="true" android:supportsUploading="false" />
我的服务提供SyncAdapter
<@R_944_9260@ce android:name="com.axonsystem.kangoosave.@R_944_9260@ces.AccountSync@R_944_9260@ce" android:exported="true" android:enabled="true" android:process=":sync"> <intent-filter> <action android:name="android.content.SyncAdapter"/> </intent-filter> <Meta-data android:name="android.content.SyncAdapter" android:resource="@xml/syncadapter"/> <Meta-data android:name="android.provider.CONTACTS_STRUCTURE" android:resource="@xml/contacts" /> </@R_944_9260@ce>
我的帐户验证员
<?xml version="1.0" encoding="utf-8"?> <account-authenticator xmlns:android="http://scheR_569_11845@as.android.com/apk/res/android" android:accountType="com.axonsystem.kangoosave" android:icon="@drawable/ic_launcher" android:label="@String/app_name" android:smallIcon="@drawable/ic_launcher" android:accountPreferences="@xml/account_preferences"/>
现在我希望我的自定义类型在创建新联系人(如Google帐户等)时显示在“联系人活动”中,即使在“要显示的联系人”菜单中也是如此.它是poosible?有人有关于此的一些信息吗?在这一点上我无法取得成功..
先感谢您
此外,您的xml / contacts文件定义非空联系人架构也很重要,请查看test_basic_contacts.xml以获取完整示例.空的EditscheR_569_11845@a基本上意味着不能编辑任何字段,这意味着该帐户也是只读的(因此您无法创建联系人).
以上是大佬教程为你收集整理的Android联系人未显示我的自定义account_type全部内容,希望文章能够帮你解决Android联系人未显示我的自定义account_type所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。