Is there a way to determine if an Account returned from AccountManager supports contacts or calendar events?
I see there is something called AccountManagerFeature but I'm not seeing a general way to use that.
In short, what I want is to present a list of accounts to the user when creating a new event or a new contact. The list should only show accounts that are valid to store events and contacts, respectively.
I have done this following this answer: What features are supported by Android's Google accounts authenticator?
Don't know how up to date are the codes, but the ones you need are working.
Don't forget to add the permission