Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//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);
    }
}