Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User Sibil87's Avatar
    Join Date
    Apr 2009
    Posts
    3
    Hello guys!

    I want to know the id of every contact in the phone.

    In the web Runtime API Refernce at the page Returned contact information (http://library.forum.nokia.com/index...F222B097F.html) we can find written:

    Property Description Type

    <item>.id Unique identifier of the contact. string

    The problem is if I try to access to the ID of contact I get a string like:
    

    Is this normal?
    Is this encoded in something like hex?
    How do I convert it in normal number?

    Do I really need to convert it or I can just use it in this way?
    Last edited by Sibil87; 2009-08-27 at 23:27.

  2. #2
    Nokia Developer Champion jappit's Avatar
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,391
    Hi Sibil87,

    are you testing on device or some emulator?

    Pit

  3. #3
    Registered User Sibil87's Avatar
    Join Date
    Apr 2009
    Posts
    3
    I'm testing it on the EMULATOR "s60 5th Edidtion SDK v1.0 ".

    I don't have any mobilephone to test it :P

  4. #4
    Nokia Developer Champion jappit's Avatar
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,391
    If you have a sample widget, I can make a test on a real device, to see how IDs are represented.

    Pit

  5. #5
    Registered User Sibil87's Avatar
    Join Date
    Apr 2009
    Posts
    3
    ok jappit I just modified the demo ContactSampleWgt so it displays also ID...

    U have only to install on mobile phone and click get contact list and it should show:
    id (only squares) , firstname and lastname.

    I sent u the widget to ur libero.it email!

    Let me know
    e grazie mille

  6. #6
    Nokia Developer Champion jappit's Avatar
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,391
    Hi Sibil87,

    I've tried your widget on a Nokia N97, but I always get "<showContacList> TypeError: Undefined Value" when clicking on "GetContactList".

    Pit

  7. #7
    Registered User mmaleki's Avatar
    Join Date
    Feb 2009
    Posts
    21
    Yes it is normal. It is some binary representation. I don't know if there is a translation to simple encoding.

    If you set your html page encoding to UTF-8, you'll get something like:

    ""

    The contact id wasn't meant to be shown, but used programmatically.

Similar Threads

  1. How to remove contact from contact list
    By swapnil_mahajan in forum Symbian C++
    Replies: 2
    Last Post: 2009-08-24, 06:50
  2. Some Question about Contact in Handphone Device
    By bytescode in forum Mobile Java General
    Replies: 5
    Last Post: 2009-07-20, 18:47
  3. Replies: 8
    Last Post: 2009-02-27, 11:37
  4. Replies: 4
    Last Post: 2007-02-27, 12:04
  5. PC Connectity with VB6
    By mkintanar in forum PC Suite API and PC Connectivity SDK
    Replies: 5
    Last Post: 2003-09-24, 04:18

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved