I am trying to load my contacts into a ListView. I had no idea where to start, so I searched the www and found some examples. One of them (https://github.com/codepath/android_guides/wiki/Loading-Contacts-with-Content-Providers) describes the approach pretty well. Now I simply don't get, what the label is for.
I tried to reproduce the example and used
CharSequence mailType = ContactsContract.CommonDataKinds.Email.getTypeLabel(context.getResources(), type, null);
instead of
CharSequence emailType = ContactsContract.CommonDataKinds.Email.getTypeLabel(context.getResources(), type, customLabel);
as it is shown in the example, and every seems just fine to me. So what is that label for?
Thanks in advance!