You pass it the type and label fields from the contacts content
provider and it reads the localized labels for the non-custom types
and returns the proper value. If the type is custom it will return the
label value you pass in. The last parameter allows you to pass in your
own array of strings to describe the built-in type values, but if you
pass null it will use the default system values that will be localized
properly.

-Jeff

On Wed, Oct 15, 2008 at 3:44 PM, Brian <[EMAIL PROTECTED]> wrote:
>
> Hello does anybody know what the following method actually does
>
> Contacts.Phones.getDisplayLabel
>
> public static final CharSequence getDisplayLabel(Context context, int
> type, CharSequence label)
>
> the documentation does not really say?
> http://code.google.com/android/reference/android/provider/Contacts.Phones.html#getDisplayLabel(android.content.Context,
> int, java.lang.CharSequence)
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to