전편에 쓰다가 못 쓴거 마저 쓰기!!

전편 필요한분.
2012/02/08 - [Android Study] - Android List에 index를 표시해보자 3편

protected Locale getLocale() {
    return Locale.getDefault();
}

static final String PHONEBOOK_COLLATOR_NAME = "PHONEBOOK";

private static final class AddressBookIndexQuery {
    public static final String LETTER = "letter";
    public static final String TITLE = "title";
    public static final String COUNT = "count";

    public static final String[] COLUMNS = new String[] {
            LETTER, TITLE, COUNT
    };

    public static final int COLUMN_LETTER = 0;
    public static final int COLUMN_TITLE = 1;
    public static final int COLUMN_COUNT = 2;

    public static final String ORDER_BY = LETTER + " COLLATE " +           
                                                         PHONEBOOK_COLLATOR_NAME;
}


남은 부분은 이게 단데... 

솔직히 여기서부터는 설명할 방법이... 찾기도 귀찮고...
게다가 구글에서 개발 해놓은 거라... 겐히 저작권 문제에 휘말리지 않을까? 싶기도하고...

여튼 Provider에서 처리해야 할 내용은 이게 다임...으힛...
담에는 이걸 Adapter 에서 사용 하는 꼴? 을 보여주겠음 움케케 (to be continue after 1 year



+ Recent posts