Problem with TIMES_CONTACTED value in Android Contacts data

I am writing an android activity that displays contact information (contact name, last contact, etc.). I am trying to show the number of calls to a contact using the ContactsContract.Contacts.TIMES_CONTACTED column, but I always get a value of 0 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 any other way to get this information?

thanks

+3
source share
2 answers

It seems that Samsung is not updating this value, and I have not yet found a solution to this problem. It works fine on other devices, although this is definitely a Samsung problem that may be resolved in future updates.

+7
source

I also use this field to sort contacts in my application, but it does not work on SS Galaxy Y (it works on Htc sensation / arc s / xperia ray). As far as I read on some forum, we can: add our own ContentObserver to view incoming / outgoing sms / calls - bad: (

0
source

Source: https://habr.com/ru/post/1497571/


All Articles