Monday, May 7, 2012

[android-developers] How can I get the number of constants included in each API ?

For example , as you know the API ContactsContract.CommonDataKinds.Email  has five types of constants.
They are TYPE_CUSTOM / TYPE_HOME / TYPE_WORK / TYPE_OTHER / TYPE_MOBILE.
Of course I can find them easily to see the API reference on the web.
But in case of programing, how can I get the number of constants included in each API.

So I mean .....

ContactsContract.CommonDataKinds.Email    ----  5  TYPE constants.
ContactsContract.CommonDataKinds.Phone    ---- 21  TYPE constants.
ContactsContract.CommonDataKinds.Relation ---- 15  TYPE constants.
ContactsContract.CommonDataKinds.Website  ----  8  TYPE constants.

regards

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate