Is there a way to sort contacts by date added, or at least see contacts that have been recently added? I'm running android os 2.2.
4 Answers
As most of the applications mentioned did not work anymore two approaches worked for me now (Aug 2020):
- Recent contacts app: https://play.google.com/store/apps/details?id=ibtidah.tav.reco
- Following the approach of Owen Miller on Quora (https://www.quora.com/Is-it-possible-to-organize-Google-contacts-by-date-added) just getting the results via the api explorer at https://developers.google.com/oauthplayground/ and using the api url https://www.google.com/m8/feeds/contacts/default/full?max-results=25&start-index=1&orderby=lastmodified&sortorder=descending
Update 2022-03 Contacts API is being deprecated. Migrate to People API to retain programmatic access to Google Contacts. See https://developers.google.com/people/contacts-api-migration.
Steps to use the api:
- Open the playground website: https://developers.google.com/oauthplayground/
- Open Step 1, expand "People API v1" and click the url below (https://www.googleapis.com/auth/contacts) then the blue button "Authorize APIs" (login with your Google account if not done already and grant permissions)
- Open Step 2 and just click the blue button "Exchange authorization code for tokens"
- Open Step 3 and put the url
https://people.googleapis.com/v1/people/me/connections?pageSize=25&sortOrder=LAST_MODIFIED_DESCENDING&personFields=names,metadata
into the "Request URI" field and click the blue button "Send request" - Find your results on the right in the "Request / Response" textarea.
pageSize=25
limits the shown contacts to 25sortOrder=LAST_MODIFIED_DESCENDING
sorts the results by last modified date, descendingpersonFields=names,metadata
limits the returned results to contain only names and metadata [plus basic info]
See also
- https://developers.google.com/people/api/rest/v1/people.connections/list for parameters
- https://developers.google.com/people/api/rest/v1/people.connections/list#SortOrder for possible sort options.
-
1I like your second approach, but I ran into an issue with it. Somehow the sorting is messed up because it is using the wrong
updateTime
field to sort on. I found a solution in this SO question To the Request URI you can add: &sources=READ_SOURCE_TYPE_CONTACT Commented Nov 2, 2022 at 11:40
This is useful if you want programmatic and CLI access to your contacts in sorted order.
If you're on Android then most probably your phone contacts are synced with your Google account's contacts which you can access using Google Contacts. Now, using the Google Command Line Tools you can return contacts in order of filing if no other sort method is set.
For example, use the following command to get all contacts in a text file in recently added order:
google contacts list ".*" > output.txt
Cheers.
-
This worked a treat. Just make sure you run this from cmdline like so
c:\googlecl\google contacts list ".*" > output.txt
- if you are in interactive mode it will print to screen, which is less useful. Commented Jul 24, 2014 at 14:36 -
-
3This does not work anymore - googlecl does not work anymore since 2015.– phihagCommented Feb 29, 2016 at 22:35
-
2GoogleCL development has continued, and it seems to be working, but is definitely in beta github.com/vinitkumar/googlecl Commented Sep 27, 2017 at 20:06
Short answer: I made an app for this called Quis, and would love to hear if it solves your problem :)
Longer answer: Android doesn't save the date you added contacts, unfortunately. However, there is a trick: you can sort contacts by their "raw ID" in the database, which roughly increase over time. It's not perfect, meaning that it will more or less work for recent contacts, but definitely won't work for contacts added years ago since a lot of things probably happened since then – new phone, Google merging/syncing contacts, and various third-party apps messing with the contacts database.
I wanted this so badly I actually made an app for it. It stores the date and location of newly added contacts, and also uses the above trick for contacts added before using the app. Would love to hear your thoughts!
-
It worked for me. Thanks a lot. With this app, I was able to retrieve a very important contact whose name I had forgotten.– LokeshCommented Oct 25 at 13:38
I suppose it might vary by carrier, but I only see options to sort by first or last name. (Motorola Droid, unrooted, Android 2.2.1)
I also don't see any apps in the Market that would display contacts sorted by date added.
I'm not even sure "date added" is captured.
If you're syncing with Google Contacts you might be able to kludge something together by applying a group to all of you existing contacts ("Old Contacts"?) then, whenever you review your contacts anyone without such a label is, by definition, recently added.
It is, as I said, kludgy. I don't see any other way to do it.
-
-
Contacts in gmail also only lets you sort by first/last name. Doesn't seem to store when the contact was added either.– Bryan Denny ♦Commented Feb 7, 2011 at 21:25