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";
 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE