Add/delete/update collections of existing accounts


  • developer

    Actually it might make sense to just skip “choose which calendars to sync” part from DAVDroid interface since there’s another place to do this.

    Thanks for the hint. Now when explicitly looking for it, I have found such a dialog in the stock Android calendar app – I have never seen it before.



  • You are welcome. BTW CalDav Sync adapter just pops up a notification whenever the list of available calendars changes, and automatically synchronizes new calendars. Seems reasonable.



  • as an answer to the last comment: I’ve just raised an issue for caldav sync adapter because in some cases just syncing all calendars found is probably not a good idea because of the amount of calendars and data within those.



  • I also want to vote for this feature, because as of right now I see no way to synchronize with a calendar from another user shared via “CalDAV delegation”.

    Additional info about my situation: I’m using Baikal 0.2.7 which doesn’t support CalDAV delegation right now. However the underlaying sabre/dav does, so I added read/write proxies manually (http://sabre.io/dav/caldav-proxy/). Now I’m not able to add a calendar to DAVdroid located at cal.php/calendars/user_b/default/ as user_a, although I set the access rights (works with Lightning).



  • I’m in the same situation of st3f4n: running SabreDAV on my home server, can’t access delegate calendars.
    From any other side, Davdroid works very well (and in fact I just donated 🙂



  • How does this bug relate to #243?

    My current impression:

    • This bug is more like “Server has a bunch of collections/calendars (some might be new!), and user wants to (de)select some”.
    • While #243 seems to be more specific about the “collection/calendar on server was deleted, how to properly handle that?”

    (from rfc2822)

    I’m not sure how to handle the situation when remote collections are added or deleted. Do you have a suggestion how these things could be handled in the user-interface?

    For the intend of “changing selection, including adding new ones”:
    What about splitting the collection selection in the setup process on its own page and then use that exact same page when changing the account later?

    (from rfc2822)

    Thanks for the hint. Now when explicitly looking for it, I have found such a dialog in the stock Android calendar app – I have never seen it before.

    Badly enough, this is only half of the solution. For one it might only select the calendars shown by that particular app. For example I have some widget to show the upcoming events and one can select calendars there too, just for the display there. And the system might still show reminders for reminders for uninteresting calendars. (Until I switched from caldav adapter to davdroid and deselcted a calendar in setup, I always got all the reminders from a friend’s calendar.)
    Or it might just be BIG company calendars you don’t want to sync via your private data plan.



  • I second @ChristianTacke: Split of the calendar selection to a separate activity invoked by the initial setup process. Then, in addition to “add new”, have a “edit existing” – which lets the user select a resource already configured, and then invokes the selection activity again (with already selected calendars already checked of course, and the possibility to “check more” to be used and/or uncheck others).

    Btw: Same would apply to contacts I’d say 🙂



  • I’,m using owncloud for syncing contacts and calendars on my desktop pc (emClient) and mobile phone (android). Both plattforms are using caldav and carddav. On windows, emClient supports to synchronize changed/added/deletd calendars and contact books. So it should be possible to do this in android, too.



  • I’m also being bitten by this 🙂



  • +1 for being able to (un)select new calendars and being able to edit the account settings.



  • Version 0.7 (available on F-Droid.org) now allows to edit account settings. 🙂



  • @breversa : i just realized that a couple of minutes ago and wanted to update my post. thanks anyway 😉



  • Adding/removing collections is also on our list, it will come to DAVdroid too, but we’ve no schedule for it right now.



  • As a first step, wouldn’t it be the easiest to allow a re-evaluating of the collections? This code is already there. Basically this means to allow the 2nd step (Which collections shall be synchronized?) again after it has been setup.



  • @rfc2822 what do you think about my previous comment? wouldn’t it be fairly easy to implent this, since choosing the collections has been coded already? you only have to implement a call to that part and name it: change collections.
    Or am I missing something here?



  • Bump?
    Why there should be UI for this? Sync of new lists should work automatically without notifying user about anything. Other apps like tasks calendar should detect changes.


  • developer

    @akero said:

    Bump?
    Why there should be UI for this? Sync of new lists should work automatically without notifying user about anything. Other apps like tasks calendar should detect changes.

    Can you suggest an algorithm for that?



  • Can you suggest an algorithm for that?

    Reload all lists/calendars from server and replace new with old ones. Doesn’t aCalDav do it this way?


  • developer

    @akero Does it? I don’t know. What about calendars that can’t be auto-detected?

    Also, I don’t know whether doing a full auto-detection at every sync is a good idea, regarding battery and traffic usage, as it is quite a cumbersome process.



  • Maybe this could be on users request in account settings, the same activity that has checkboxes with list of accounts and menu “sync now” “remove”, adding new menu entry with “Complete sync” that would re-detect all lists and calendars would work?


Log in to reply