WM6 联系人同步谷歌
我正在寻找为 Windows Mobile 和 Google 联系人编写联系人同步应用程序。我目前正在针对 Windows Mobile 6 平台进行开发,并使用 PocketOutlook 托管类和 C#。
我在进行一些研究时遇到的一个最初问题是联系人没有可访问的上次更新日期!在阅读了 MS 论坛上的一些帖子后,建议的方法之一是监视联系人更改,这在紧凑型设备上似乎不是一个好主意,因为我找不到操作系统级别的 ContactUpdated 事件,并且每个联系人对象都有一个 Updated每个属性的活动!如果我有 100 个联系人,每个联系人有 10 个属性,那么我将订阅 1000 个事件(我有更多的联系人,并且有更多的属性!)。
WM6 有很多同步服务,所以一定有办法解决这个问题,但到目前为止我还没有想出一个。
联系人上公开了一个属性集合,您可以在其中添加自定义属性,但由于 Windows Mobile 中的标准联系人编辑器在编辑联系人时不会填充此集合,因此我不知道如何利用它来发挥我的优势。
以前有人遇到过这个问题吗?如果有的话是如何处理的?
Google 对象确实有更新日期,我会知道上次同步的日期,因此下载没问题。
预先感谢
OneShot
I am looking to write a contact synchronisation application for windows mobile and google contacts. I am developing against the Windows Mobile 6 platform for the time being and using the PocketOutlook managed classes and C#.
An initial problem I have come up with whilst doing some research is the fact that the contacts do not have an accessible last updated date! After reading some posts on MS forums one of the suggested approaches is to monitor for contact changes, this does not seem like a good idea on a compact device as there is no OS level ContactUpdated event that i can find and each contact object has an Updated event for each property! Working with this if i had 100 contacts each with 10 properties i would be subscribing to 1000 events (I have many more contacts and there are many more properties!).
There are plenty of synchronisation services for WM6 so there must be a way around this problem, but as of yet I haven't come up with one.
There is a Properties collection exposed on the contact under which you can add custom properties but as the standard contact editor in windows mobile will not populate this when editing a contact I can't see how I could use it to my advantage.
Has anybody faced this issue before and if so how was this dealt with?
The Google objects do have an updated date and I will know the date of the last sync so downloads are fine.
Thanks in advance
OneShot
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我最终放弃了这一点,我尽可能将所有内容推送到谷歌联系人,但随后不得不在每次同步时比较每个联系人的所有属性。
I eventually gave up on this, I got as far as being able to push everything up to google contacts but then had to resort to comparing all the properties of each contact at each sync.