开发者

Wrong representation of custom account

I have created my own account type, like it's described here. Everything works fine on emulator or on my LG GT-540 with standard android contacts application. In Contacts application I can see proper custom contact while editing:

Wrong representation of custom account

But when my colleague tried this app with HTC device (with its own contacts-manag开发者_Go百科ement application), he saw the string "company_name.program_name.android.profile" (i.e. android:accountType) instead of "GeneDroid Profile" (i.e. android:label) of my xml/account-authenticator.xml file:

<?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"/>

Wrong representation of custom account

I cannot understand why it happens. What am I doing wrong?


It looks like it's using the accountType instead of the label. I don't think it's anything you're doing wrong. My only suggestion would be to make that something that would look nice as well. Unfortunately you need to use it as a key as well so you can't translate it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜