You could use reflection, I suppose.

On Mon, May 7, 2012 at 9:02 AM, BluePencil <se...@5th-trend.com> wrote:
> 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android 4.0 Programming Books: http://commonsware.com/books

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to