Code example for ListFragment

0
/** 
 * 
 * @version $Revision: $ 
 * @author <a href="mailto:bmeike@callmeike.net">Blake Meike</a> 
 */ 
public class ContactsFragment extends ListFragment {
    private static final String[] CONTACTS_PROJECTION = new String[] {
            BaseColumns._ID,
            Contacts.CONTACT_PRESENCE,
            Contacts.DISPLAY_NAME
        }; 
 
    private static final String CONTACTS_FILTER
        = "((" + Contacts.DISPLAY_NAME + " NOT NULL)"
            + " AND (" + Contacts.DISPLAY_NAME + " != ''))";
 
    private static final String CONTACTS_SORT
        = Contacts.DISPLAY_NAME + " COLLATE LOCALIZED ASC";
 
 
    /** @see android.support.v4.app.Fragment#onCreateView(android.view.LayoutInflater, android.view.ViewGroup, android.os.Bundle) */