×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    10

    let the user select address from the address book

    Hi,

    Using the PIM api, is there a way to open the phone's native address book, let the user select a contact, and access that contacts data. I mean, is there a way to launch the address book from a MIDlet (in the case of Blackberry there is a choose() method), and get the result, or you have to write your own UI code to present the contact information to the user? If you have to write your own code, are there any examples for it?

    Thanks!

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: let the user select address from the address book

    Hi szleventee,

    as you have guessed, in your case (you need to retrieve contact address) you need to write your own code for displaying contacts' info to the user.

    There's only one case (afaik) where you do not need to do it, and it is when the data you need is a contact phone number: in this case you could use a TextField with PHONENUMBER contraints, and (depending on device implementation) users will be automatically allowed to choose a phone number from phone contacts (without the need to write any code).

    Anyway, about the UI itself you could use a simple List, so the related code would be no complex at all. About accessing contacts infos, you can take a look at this useful article:

    http://wiki.forum.nokia.com/index.ph...s_using_JSR_75

    Pit

  3. #3
    Registered User
    Join Date
    Jun 2005
    Posts
    10

    Re: let the user select address from the address book

    I think the PHONENUMBER type TextField be a good solution! You write that it's based on the device's implementation. Do you know approximately what percentage of handsets support this? (not only Nokia, every MIDP 2.0)

    Thanks for the help!

Similar Threads

  1. Reading address book backup file on PC
    By andymarkavery in forum PC Suite API and PC Connectivity SDK
    Replies: 7
    Last Post: 2010-07-27, 07:53
  2. Address book match
    By vinayakak in forum Symbian
    Replies: 3
    Last Post: 2008-05-30, 08:23
  3. how to access address book with java
    By li_changyue in forum Mobile Java General
    Replies: 4
    Last Post: 2005-01-20, 08:05
  4. Replies: 2
    Last Post: 2004-09-15, 22:47
  5. Replies: 1
    Last Post: 2003-02-26, 12:54

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×