Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 28
  1. #1
    Regular Contributor davidmanpearl's Avatar
    Join Date
    Aug 2005
    Location
    Venice, California
    Posts
    67
    I'm sure that this has been covered many times on this forum, but I haven't been successful in searching. So, here it is again...

    I need to know a unique identification of the handset on which my MIDlet is running. The phone number would be optimum, but I think J2ME doesn't have access to that. I would also be happy with a serial number of the handset perhaps accessible by getAppProperty() or security info.

    How do I access the phone number, serial number, or other unique handset id in a MIDlet?

    Thank you, and please feel free to eMail me.

    - Sincerely, David Manpearl dmanpearl_at_imatte_dot_com

  2. #2
    Registered User juarezjunior's Avatar
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,883
    Hi David,

    I think IMEI (stands for International Mobile Equipment Identity) is right for you - http://en.wikipedia.org/wiki/IMEI

    Below is how to get it for different manufacturers.

    Nokia
    System.getProperty("com.nokia.mid.imei");
    System.getProperty("phone. imei");
    System.getProperty("com.nokia.IMEI");

    Siemens (BenQ?)
    System.getProperty( " com.siemens.IMEI" );

    SonyEricsson
    System.getProperty("com.sonyericsson.imei" );

    Motorola
    System.getProperty("IMEI" );

    Also, check this doc for sys properties.

    MIDP: System Properties (With Example) v1.1
    http://www.forum.nokia.com/info/sw.n..._v1_1.zip.html

    I hope it helps!

    Best Regards,

    Juarez Junior

  3. #3
    Regular Contributor davidmanpearl's Avatar
    Join Date
    Aug 2005
    Location
    Venice, California
    Posts
    67
    Thank you for this useful information, but for every one of these properties my Nokia 6682 (S60 2nd ed. FP2, 4.6.2.0) returns null.

    - Regards, David Manpearl dmanpearl_at_imatte_dot_com

  4. #4
    Registered User juarezjunior's Avatar
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,883
    Hi David,

    Did you check the sys props doc? Take a look at page 5:

    String
    com.nokia.mid.imei (in Series 40 3rd Edition devices only, not in Nokia 6270 and Nokia 6101)

    Description
    Returns the device’s IMEI code. Note: The MIDlet must be signed, otherwise this value is NULL.

    BR,

    Juarez Jr

  5. #5
    Regular Contributor jinda007's Avatar
    Join Date
    Jul 2005
    Posts
    89
    hey J-Jnr,
    I would like to know what it entails to sign a midlet?

  6. #6
    Registered User juarezjunior's Avatar
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,883
    Hi jinda007,

    Check the links below and you'll get related info:

    MIDlet jar signing (a tutorial)
    http://www.spindriftpages.net/pebble...275880301.html

    MIDP 2.0: Tutorial On Signed MIDlets v1.1
    http://www.forum.nokia.com/info/sw.n..._1_en.pdf.html

    BR,

    Juarez Jr

  7. #7
    Regular Contributor jinda007's Avatar
    Join Date
    Jul 2005
    Posts
    89
    Thanks J-Jr

  8. #8
    Registered User juarezjunior's Avatar
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,883
    You're welcome, glad it helped

  9. #9
    Registered User l_satyadev's Avatar
    Join Date
    May 2006
    Posts
    17
    Hello Friends,

    Thanks for your Thread. I am also searching for IMEI number. This is very helpful for me.

    Based on your help i created a small test based Signed MIDlet application to display IMEI number. And i deployed it in my local server.

    But i am unable to run the application in Nokia S40 DP 2.0 SDK 1.1 Emulator. While running the application i am getting "No Valid Certificate". How can i solve this problem?

  10. #10
    Regular Contributor jinda007's Avatar
    Join Date
    Jul 2005
    Posts
    89
    satya i will advice you delete this message and post it as a new topic so others can see it

  11. #11
    Super Contributor Jason Glass's Avatar
    Join Date
    Mar 2006
    Location
    Phoenix, AZ. USA
    Posts
    556
    satya, you can also follow juarez juniors links below, as they are helpfull, and listen to what traud says, as he knows his signing!

    good luck
    Jason Glass
    http://IChiBanComputers.Com

  12. #12
    Super Contributor wang_shui's Avatar
    Join Date
    Mar 2006
    Posts
    516
    Hi,

    Here is a signing tutorial which helps to sign the application.
    http://www.spindriftpages.net/pebble...275880301.html


    have u tried it ur application on a real device??


    Wang

  13. #13
    Nokia Developer Champion balagopalks's Avatar
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,427
    Hi l_satyadev! Welcome to Nokia Discussion Boards!!

    I remember there was some settings in the emulator(My memory says Tools => Preference => MIDP) to make the app trusted so that we can run it on emulator as trusted with out signing (Dont have the S40 2nd or 3rd ed emulator right now with me to check it!). But in order to test your app in real device you have to sign it.

    May be this link is of some interest!
    http://discussion.forum.nokia.com/fo...ulator+trusted

    Also please let us know whether you were successful in getting the IMEI number in the Emulator.

    Regards
    Gopal

  14. #14
    Registered User l_satyadev's Avatar
    Join Date
    May 2006
    Posts
    17
    hi balagopalks,

    thanks for your information. But my problem is, how can i upload certificate to my mobile device, i dont have any CA certificate.

  15. #15
    Nokia Developer Champion balagopalks's Avatar
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,427

Page 1 of 2 12 LastLast

Similar Threads

  1. IMEI / Serial number / Phone number
    By mreaves in forum Mobile Java General
    Replies: 15
    Last Post: 2009-04-28, 12:36
  2. How to make setting list item for Phone number?
    By oslario in forum Symbian User Interface
    Replies: 4
    Last Post: 2008-03-16, 19:38
  3. Own Phone Number
    By rrrs in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2004-06-28, 17:51

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