Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs

Dashboard
Notifications
Mark all as read
Q&A

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

+0
−0

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?

Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

2 comment threads

Deprecated doesn't necessarily mean replaced (1 comment)
I may be wrong, but the way I interpret the text you quoted, it is deprecated because the correspondi... (1 comment)

0 answers

Sign up to answer this question »