Originally Posted by pfowler
A good place to start would be the javax.microedition.pim package. From there, you can access the PIMList class which will give you a list of contacts. There's even a PIMListListener you can register with to detected new/removed/updated contact items. This is always much better than looping.
Thanks for the quick reply. Last time I researched all of this, about a year ago, there were some issues with PIMListListener that caused it not to notify in certain cases (sorry, don't remember exactly, might have been when updates were made by the sync or other apps, instead of by the user). I do recall that it wasn't a big deal for some apps, but would be a problem for a sync app. If those issues still exist, then I guess using that method most of the time, and then doing the loop less often (to pickup anything that was missed) could be an option.
I was surprised that Google Sync only updates every 2 hours, but I guess it makes since -- you don't want to kill the device by using too many resources.