Hello,

this seems to be the same issue, that I have on my Motorola phone
(Motorola shows my Sync-Adapter as "null" instead of "Unknown"). I
investigated this a little bit and found the following log lines:

01-25 11:18:58.796  1742  6985 D ContSrcUpdtService: adding source
picture_source=0 pretty_name=Google
[email protected]
gams_account_type=com.google allow_out_of_context=1
active_sync_source=1 capability=5
[email protected]
01-25 11:18:58.803  1742  6985 D ContSrcUpdtService: adding source
picture_source=0 allow_out_of_context=0 active_sync_source=0
gams_account_type=org.dmfs.carddav.account capability=5
gams_account_name=Test Addresses

The first line is about the Google Account, the second one about my
Sync-Adapter. As one can see the Google-Line has some extra info
"pretty_name" and "secondary_text". Also, I don't know why
active_sync_source is set to 0 on my account.
I enabled it with:

            ContentResolver.setSyncAutomatically(account,
ContactsContract.AUTHORITY, true);
            ContentResolver.setIsSyncable(account,
ContactsContract.AUTHORITY, 1);

And syncing works fine so far.

Does anyone know where to set the "pretty_name" and "secondary_text"
for my sync-source?
It seems to me this is not some Motorola or Samsung proprietary
stuff.

Thanks

Marten


On 27 Dez. 2010, 02:34, WATTO <[email protected]> wrote:
> Hi guys,
>
> Based on the SampleSyncAdapter provided in the Android API
> documentation, I have developed an AccountAuthenticator andSyncAdapterthat 
> allows people to initially sign-in to a web-based
> account and then regularly sync their contacts list from the server to
> their phone.
>
> Now, this is all good and works fine, but there is a little section
> that I have been unable to find any information on - I suspect that
> this may be because of the specifics of the Samsung Galaxy S phone I'm
> testing on (Android 2.2). Any clarification on this would be great
> too.
>
> When my contacts from the server are synced to my phone, they
> correctly join together based on firstname, lastname, etc. If I
> scroll down on one of these contacts to where it lists all the joined
> contacts, I can see a little blue "F" icon for the facebook account, a
> black "G" for the google account, etc, however my custom sync appears
> as a 'generic' green icon (green background with a white upper-body
> sillouette on it).
>
> If I click on this Joined Contacts section, it lists all the accounts,
> where Google is called "Google", Facebook is called "Facebook", and my
> custon sync is called "Unknown".
>
> When I defined my application, I have specified icons and titles for
> thesync adapter, account authenticator, and so forth. There icons and
> titles are alldisplayedcorrectly when I try to create an account
> through the "Accounts and Sync" menu in the settings. ie, my account-
> authenticator XML file is defined with the following values, which are
> used correctly...
>     android:icon="@drawable/icon"
>     android:smallIcon="@drawable/small_icon"
>     android:label="@string/sync_name"
>
> My question is, where are the "green icon" and the associated title
> defined for my application. Its obvious that I'm overlooking
> something, as it detects it as a "unknown" type against the contact. I
> suspect that it may be something that I need to set on the Account
> itself somewhere, or possibly its specific to the Samsung Galaxy S?
>
> Any help would be appreciated.
>
> Thanks,
> Michael.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to