2015년 1월 19일 월요일

구글캘린더 이벤트 삭제, Android

private int DeleteCalendarEntry(int entryID) {
    int iNumRowsDeleted = 0;
 
    Uri eventsUri = Uri.parse(getCalendarUriBase()+"events");
    Uri eventUri = ContentUris.withAppendedId(eventsUri, entryID);
    iNumRowsDeleted = getContentResolver().delete(eventUri, null, null);
 
    Log.i(DEBUG_TAG, "Deleted " + iNumRowsDeleted + " calendar entry.");
 
    return iNumRowsDeleted;
}

참고 : http://stackoverflow.com/questions/6924438/how-to-delete-specific-event-in-calendar

댓글 없음:

댓글 쓰기

JavaScript, Array.some(), Array.every()

 Array.every(callbackfn: (value: T, index: number, array: T[]) => unknow, thisArg?: any): boolean      const   array  = [ 'A' ,  ...