Android CalendarProvider Events Color

后端 未结 2 982
遥遥无期
遥遥无期 2021-02-10 02:15

I\'m most confused on how to use Colors in the Android CalendarProvider. I can add events alright, but when I try to insert one with a particular color, this preference seems to

2条回答
  •  一个人的身影
    2021-02-10 03:19

    You need to use Events.EVENT_COLOR_KEY instead of EVENT_COLOR (which is read-only). The value you use needs to be a COLOR_KEY from the ColorsColumns table of type TYPE_EVENT.

提交回复
热议问题