views:

513

answers:

3

There are at least two ways that I know of to write a Symbian application: 1. J2ME 2. A native application.

My question is, does the SDK/API for either of those methods (or any other method) grant me (at least) read-only access to contact information (names/numbers/etc) on the phone itself? Does this in any way depend on the specific phone being used?

+3  A: 

In C++, you can use e.g. the Contacts Model API. There's an example in Forum Nokia.

In J2ME, you need to be working on a phone that has JSR-75. Again, there's an example in Forum Nokia.

laalto
Thanks - what % of the existing Nokia smartphones is this available for? The Contacts Model API looks like it's S60 only, and JSR-75 looks like it's for PDAs. Are these technologies also applicable for lower-end/older nokia phones?
AlexeyMK
You asked specifically about Symbian :-)All Nokia Smartphones are S60 apart from a few legacy ones on S80, they're all Symbian anyway and the Contacts Model is there.JSR-75 has two components, File Connection and PIM access. Unfortunately I think the latter part is relatively rare on low-end devices.
Mark Wilcox
@AlexeyMK: The Contacts Model API is a Symbian API so it is not restricted to S60 only. JSR-75 is supported on practically all recent devices. I'll add details to my answer, the URL is practically too long to include here.
laalto
Thanks guys. I should have been specific - I'm interested in specifically lower-end devices such as those most in use in the developing world - India, CIS states, etc.
AlexeyMK
+1  A: 

Don't forget, as well as native C++ and J2ME (MIDP), you have:

If you are thinking about lower-end devices which are often S40 devices, MIDP is probably your best bet however.

KevinD
+2  A: 

Open the default contact database using CContactDatabase::OpenL(). use thus returned database object in TContactIter::NextL() in a loop to fetch the IDs of every contact in the contact book.

Sunieal
Dude try adding some more detail to your answer. It would really help others too
ardsrk