View Single Post
epage's Avatar
Posts: 1,684 | Thanked: 1,562 times | Joined on Jun 2008 @ Austin, TX
#334
Originally Posted by uvatbc View Post
I start the download of all inbox items and stop the moment I get something that is older than the newest entry that I have.
Regarding contacts: yes, I get the contacts from the regular Google contacts - because of a few reasons:
1. the regular Google contacts API actually is an API unlike GV.
2. I can ask the server for all updates since a given time. Much better than what I'm doing for the Inbox items. gcontacts api also provides what has been deleted
3. All this means much less processing on my side, implying less CPU time, implying more battery life.
1. At one point I grabbed the source of the GV chrome extension (can't remember how) and it made a request for a json resource with all sorts of information. In this same request I grab the _rnr, callback numbers, and contacts. More is available but I just ignore it for now. This seems like it should be amply efficient though maybe my contact list isn't big enough.

2. Ok, I missed the the auto-killing during pagination processing. I don't bother with pagination, just get the most X recent items. Since I'm not a heavy phone user this provides months of data. So far no one has complained. In a local branch I've even made it so if you are only looking at mised calls or voicemails and cause a refresh, it will only refresh those.
__________________
770, n810, n900, Ideapad S10-3t
TheOneRing, DialCentral, Gonvert, Quicknote, Multilist, ejpi, nQa, Waters of Shiloah
Programming Blog