views:

309

answers:

2

Hello,

How do i add the functionality to import a contact number from address book/contact list and add it into an array?

Edit

If you have seen the advanced call manager app, it allows you to choose a contact from contact list and add to blacklist. I want to do same thing choose a contact from contact list and add to internal array.

Details:
Nokia N70
CLDC 1.1
MIDP 2.0

+3  A: 

You need to check if the device supports JSR-75 to get PIM data access. Have a look at this link: http://jcp.org/en/jsr/detail?id=75

ruibm
@ruibm: thanks for sharing that, i look into that :)
Sarfraz
@ruibm: I could not find the solution in the link you provided, i have added more info to my question please have a look at it again, hope this clarifies what i mean. thanks
Sarfraz
@Sarfaz: I just had a look at the advanced call manager app. I believe the app is written natively in S60 and it hooks in directly to the phone call API. I believe it's their app that maintains the blacklist not the phone. Finally, I've never used this JSR myself but I would be very surprised if you could have the same degree of flexibility as you do when you use S60 API directly.
ruibm
@ruibm: thanks for your answer, it's pretty helpful
Sarfraz
+1  A: 

The specifications for the PIM API can be downloaded from the link provided by ruibm. Final release -> download page -> PIM Optional Package Specification. I'm not sure what more you could want other than a direct example....

colig
An actual answer which brings value, maybe?
Gnoupi
@colig: i am not looking for specification here, just how to do it, i know my mobile supports it.
Sarfraz