09-24-2010 03:48 AM
09-24-2010 04:23 AM
tnx for the link)
I was reading that api for several days)
I know about items() method.
But it's not that quick.
The problem in details is the following:
I have a Vector of several numbers/emails which are not pinned to any contact information (like UID or smth else).
And for every element from Vector (e.g.: "firstname.lastname@example.org", "456123789",..) I should find corresponding name (and show it often further).
I work with a huge (2000) Address book.
09-24-2010 04:27 AM
for a quick check by number you can do this:
create a http://www.blackberry.com/developers/docs/5.0.0api
to retrieve the full contact you still have to use the contactlist, but it should be more performant.
09-24-2010 05:04 AM
nope, no such luck.
if you work with the addressbook extensively you have no other option but to copy it into a performant structure.
internally the addressbook uses a patricia tree which is quite fast - i have absolutely no clue why the API is so slow.
there have been posts about people doing exactly that, but it's been some time.
when working on os5+ it would be easier to save with sqllite, but still a lot of work to overcome a stupid API.