我已经创建了自己的帐户类型,就像这里描述的那样。在模拟器或带有标准安卓联系人应用程序的 LG GT-540 上一切正常。在联系人应用程序中,我可以在编辑时看到正确的自定义联系人:
但是当我的同事在 HTC 设备上尝试这个应用程序(带有自己的联系人管理应用程序)时,他看到了字符串“company_name.program_name.android.profile”(即 android:accountType)而不是“GeneDroid Profile”(即 android:label ) 我的 xml/account-authenticator.xml 文件:
<?xml version="1.0" encoding="utf-8"?>
<account-authenticator xmlns:android="http://schemas.android.com/apk/res/android"
android:label="@string/app_name"
android:accountType="com.companyname.proframname.account"
android:icon="@drawable/ic_launcher"
android:smallIcon="@drawable/geni_logo"
android:accountPreferences="@xml/account_preferences"/>
我不明白为什么会这样。我究竟做错了什么?