Thanks - worked for me!
Either via URL (see http://dmfs.org/wiki/index.php?title=Auto-provisioning )
or via a prepared config file
The dav url (seperate vor card/cal/task)
The Password (hashed?)
The Server Cert (For self signed)
Of course the Privisioning shall allow combinations of above where the rest ist completed with the ui
Something like that is already in development for DAVdroid! This will greatly simplify the setup process. See #148 for more details.
Indeed, support for well-known URIs is coming, and support for current-user-principal is already available.