Java tutorial
//package com.java2s; // Released under the Apache License, Version 2.0 import android.database.Cursor; import android.provider.ContactsContract; public class Main { /** * Get the Contacts.DISPLAY_NAME index for ContactPicker. */ public static int getNameIndex(Cursor contactCursor) { return contactCursor.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME); } }