Contacts not visible in Sony Contacts app



  • So I think our both issues differ. Other Contact Apps are working the same as my Sony Contacts list - for me - for my problem. All of them use the internal, stock Android 4.3 ContactStorage. Davdroid itself is an app and provides accounts and mightbe a Provider in a technical matter, but he doesn’t store the contacts item itself. That’s - how far I understood this - is not how Android is working where you have a core system storage manager and different Provider might use this.
    So the issue of wrongly / differently displayed items is caused by how each contact app interprets / reads the “vcard” data stored. @naevtamarkus Manipulating incoming data is not what I expect from DavDroid. What about then outgoing syncs? This has to be fixed at the root - where do the wrongly saved incoming vcards come from, e.g. owncloud, so it’s an owncloud issue.

    But back to topic: I’m quite not sure if this is a third party issue? Reading my own logs it seems to be a somewhay incompatibility between the remote server’s vcard data provider and davdroid. But then it’s strange @nijel is able to “workaround” using a different Contact manager?

    So perhaps we might sum up what has been discussed so far:

    • original problem: only Sony contact app doesn’t show items
      • workaround: use AOSP (or another) Contact manager app
    • derived problem on a Sony device where not all issues are synced but new ones are
      • not able to workaround using a different contact manager app
    • related issues:
      • FullName auto-split / storage / escaped specialchars
      • VCard 4 option can’t be switched off in DavDroid 0.8.1

  • developer

    All other providers show “First Name” and “Last Name” fields by default (and very few alternatives), and it’s only DavDroid showing “Name” and “Phonetic xxx” as defaults fields, and that’s where the problem (at least my problem) comes from.

    On my phones (and all devices I have tested DAVdroid yet), the Contacts app shows First Name and Last Name as expected. It reads the possible fields from https://github.com/bitfireAT/davdroid/blob/master/app/src/main/res/xml/contacts.xml. This file is quite undocumented.

    Is there a way to tell DavDroid to show “First Name” and “Last name” fields as default like the other providers? Or are those defaults specified sistem-wide and DavDroid is not picking it up?

    I guess this is related to the contacts.xml mentiond above, but I don’t know if there’s a way to expand the view by default. It shouldn’t be important anyway, because when you enter “Firstname Lastname” the Contacts app should split the name and set the appropriate fields. You may nevertheless expand the view to have the first name / last name edit fields.

    Does VCARD4 have anything to do with it? I was not able to disable it!

    It’s not a Setting, it just shows whether your server is VCard/4 capable. The GUI element is disabled and should be grayed out to indicate that it can’t be changed, but for some reason it’s not grayed out.

    So, is there any issue left for DAVdroid or can I close this?



  • I think the “First Name”/“Last Name” behaivour is annoying, although I understand it’s not very critical. May I try to fix this and send a pull request?



  • @rfc2822 I don’t think there is a general agreement on your statement that this is “absolutely” not related to DavDroid. From all the providers there are (I tried four) only DavDroid gives you “Name” as an option where all the others give you First/Last name… so there is probably something that makes DavDroid different and this “feature” has a bad interaction with Sony devices.

    I am not saying there is a problem “per se” in DavDroid, and I honestly know very little about its internals to make a strong assertion about anything. But for (us) Sony users this is an annoying problem.

    Does any of the developers own a Sony device? Or anyone with expertise on this code? I would like to ask you to “Let The Community Work” and see what the options are. I would be very happy to try acceptable (by DavDroid devel’s standards) proposals in my phone.

    Thanks!


  • developer

    I think the “First Name”/“Last Name” behaivour is annoying, although I understand it’s not very critical. May I try to fix this and send a pull request?

    Of course, I guess you will have to play around with the (undocumented) EditSchema in contacts.xml. Or would you have another approach?

    From all the providers there are (I tried four) only DavDroid gives you “Name” as an option where all the others give you First/Last name…

    I just tried the built-in Exchange account (with outlook.com) and it indeed shows “First name” and “Last name” by default.

    Which did you try? Any of them open-source so that we can have a look?



  • Of course, I guess you will have to play around with the (undocumented) EditSchema in contacts.xml. Or would you have another approach?

    I guess you mean compiling the APK with different values in contacts.xml… but that’s not very sustainable, isn’t it? I mean, even if I succeeded (wouldn’t know where to start from) I would have to change that on every new version. Or are you willing to accept pull-requests on such file?

    I just tried the built-in Exchange account (with outlook.com) and it indeed shows “First name” and “Last name” by default.
    Which did you try? Any of them open-source so that we can have a look?

    • Phone contact (device only)
    • Google contact
    • Exchange activesync contact
    • Davdroid contact

    I don’t think any other is really open source… save, maybe, for the first one. There might be open implementations in AOSP or CM


  • developer

    I guess you mean compiling the APK with different values in contacts.xml… but that’s not very sustainable, isn’t it? I mean, even if I succeeded (wouldn’t know where to start from) I would have to change that on every new version. Or are you willing to accept pull-requests on such file?

    Of course, if this change doesn’t break anything (would have to be tested very well, because every single change breaks n vendors with m Android versions (n,m ∈ ℕ)).

    Phone contact (device only)
    Exchange activesync contact

    The contacts schemes should be available for at least these two ones, but I didn’t find anything on the fly. It may also be that there’s no possibility to change the display order because it may be bound to Android-internal account types by hard code (as the group feature is).



  • Somehow: it fixes itself since DavDroid 0.8.2 is installed and I synced back twice from Mac and Triggered Sync on Phone … but perhaps: the items on Server somehow got deleted and they are all “new” now to the sync adapter … Can someone verify this: export all contacts from server, sync empty list, add / reimport all contacts, re-sync -> contacts are resurrected on phone? fullstop, sorry… during Android DavDroid Sync was running, I went into the Sony Contacts list and many of my contacts appear, once it has been finished syncing, most of them are gone… What the h***



  • I just encountered the same behavior as @childnode described: During sync all the contacts are populated in the stock Sony contacts app. You can actually watch them appear as they are synced. Once the sync finishes most of the contacts are removed. An alternative app (True Contacts) just shows the exact same contacts as the Sony app.

    Sony Z3C 5.1.1, DAVdroid 0.8.3, ownCloud 8.1.1

    edit: Same problem on my Nexus 7 2013 tablet. So in my case it’s not Sony after all. And if I interrupt the sync manually the contacts stay there.
    At the end of the sync I get this: “Removing entries that are not present remotely anymore (retaining xxx entries)” I have exactly xxx contacts in ownCloud.
    Everyone may want to have a look at this solution: https://github.com/bitfireAT/davdroid/issues/578



  • Yes, you have to fix your owncloud as described in #578 (only change of one line is needed)

    Alternatively you can wait until OC releases the already submitted patch that fixes this issue!


Log in to reply
 

Similar topics

  • 2
  • 10
  • 3