Problem with TIMES_CONTACTED value in android contacts data

烂漫一生 提交于 2019-12-10 20:43:16

问题


I am writing an android activity that displays information about contacts (contact name, last time contacted, etc.) I am trying to show the number of times a contact is contacted using the ContactsContract.Contacts.TIMES_CONTACTED column but I always get a 0 value for all contacts. I am using a Samsung galaxy S device and I saw somewhere else on the Internet that this is a problem specific to some devices (including Samsung GS). Is there another way to get this information?

Thanks


回答1:


It looks like Samsung does not update this value and I have not found a solution to this problem yet. It works ok on other devices though so it is definitely a Samsung problem which might be solved in future updates.




回答2:


I am also using this field to sort contacts in my app - but it doesn't work on SS Galaxy Y ( it works on Htc sensation/arc s/xperia ray). As far as I read from some forum - what we can do is: add our own ContentObserver to observer incoming/outgoing sms/calls - bad :(



来源:https://stackoverflow.com/questions/5009072/problem-with-times-contacted-value-in-android-contacts-data

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!