Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
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 /...
#2: Post edited
What's the alternative of ContactsContract.Contacts.LAST_TIME_CONTACTED?
- What's the alternative of "ContactsContract.Contacts.LAST_TIME_CONTACTED"?
#1: Initial revision
What's the alternative of ContactsContract.Contacts.LAST_TIME_CONTACTED?
What should I use instead of `ContactsContract.Contacts.LAST_TIME_CONTACTED`? According to [documentation](https://developer.android.com/reference/android/provider/ContactsContract.ContactOptionsColumns#LAST_TIME_CONTACTED), LAST_TIME_CONTACTED variable was deprecated. Even it was written in ContactsContract.class ```java /** @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.<br/> 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?