Search code examples
androidgoogle-calendar-api

Android: Why calendar event's changes their id after editing (not always, sometimes)?


I need to set some action on event (custom reminder) and I am using event's id to remember it. However, problem is that after editing event a few times it (randomly) changes its event id. It can be reproduced any time on any device (I tried 6 different ones) by following these steps:

  1. Create event
  2. Edit event until it changes id (usually it requires only 2-3 edits, sometimes more but usually not more than 7-8, maximum was like 15 edits or so)

Why does this happen? I really need to remember event id (my app need to set custom reminder on this event) but if event's id changes, it is useless for me.


Solution

  • well, I found out, that when you edit some event, android doesn't actually edit the event - it deletes it, and recreate a new one (with changes) lol.

    Usually the newly created event has the same id as the previous one, but not always.

    Jeez Google, seriously?