What’s the alternative of "ContactsContract.Contacts.LAST_TIME_CONTACTED"?

  android, android-contacts, contacts, java

What should I use instead of ContactsContract.Contacts.LAST_TIME_CONTACTED? According to documentation, LAST_TIME_CONTACTED variable was deprecated. Even it was written in ContactsContract.class

/** @deprecated */
@Deprecated
String LAST_TIME_CONTACTED = "last_time_contacted";

Since it was deprecated then there must be another alternative. But why there’s no alternative? Or why the documentation didn’t link any alternative?

This constant was deprecated in API level 29.
Contacts affinity information is no longer supported as of Android version Build.VERSION_CODES.Q. This column always contains 0.

In Android Q or higher version, there’s no alternative variable either?

Source: Android Questions

LEAVE A COMMENT