开发者

how to get the label associated with an android account?

开发者 https://www.devze.com 2023-01-22 00:55 出处:网络
I want to get the displayed name, id the label, that is associated with a android account开发者_运维问答.

I want to get the displayed name, id the label, that is associated with a android account开发者_运维问答.

For instance, when you create a new contact, you have to precise the type of the account and to do so, you can pick up one of the account that enable contact synchronisation, or the 'telephone' type.

I have search thru the AccountManager, ContactsContract.Settings and SyncAdapterType but cannot find this label.

thanks a lot


seems that the following classes answer my question:

AccountManager AuthenticatorDescription

I (finally) found them in the ContactManager sample from android sample.

But the real answer is to get the label thru the PackageManager. This is explain in the sample.

0

精彩评论

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