found my solution already.
SyncAdapterType[] types = ContentResolver.getSyncAdapterTypes();
for (int i = 0;i<types.length;i++)
{
System.out.println("----------------");
System.out.println("accountType: " +
types[i].accountType);
System.out.println("authority: " + types[i].authority);
System.out.println("supportsUploading:
"+types[i].supportsUploading());
System.out.println("----------------");
}
i can now compare the accountType of the Adapter with the accountType
of my contacts, and if the account authority is "com.android.contacts"
and the account does NOT support Uploading, then its a read-only
contact.
thanks for listenning :p
On 26 Mai, 15:28, "datayeah!" <[email protected]> wrote:
> Hi,
>
> as far as you might know, there are contacts belonging to a sync-
> adapter (e.g. twitter) that are available read-only in your android
> addressbook.
> is it possible to identify a read-only contact through a query on the
> contactscontract content provider or is there a way to identify these
> contacts at all?
> i could not find any flag or database field that tells me that the
> contact i select is a read-only contact.
>
> any suggestions?
>
> regards
> timo
--
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