开发者

how to get the label associated with an 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜