×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 28
  1. #1
    Regular Contributor
    Join Date
    Aug 2005
    Location
    Venice, California
    Posts
    67

    Question Unique Handset ID or Phone Number

    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
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: Unique Handset ID or Phone Number

    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
    Join Date
    Aug 2005
    Location
    Venice, California
    Posts
    67

    Unhappy Re: Unique Handset ID or Phone Number

    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
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: Unique Handset ID or Phone Number

    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
    Join Date
    Jul 2005
    Posts
    89

    Re: Unique Handset ID or Phone Number

    hey J-Jnr,
    I would like to know what it entails to sign a midlet?

  6. #6
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: Unique Handset ID or Phone Number

    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
    Join Date
    Jul 2005
    Posts
    89

    Re: Unique Handset ID or Phone Number

    Thanks J-Jr

  8. #8
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: Unique Handset ID or Phone Number

    You're welcome, glad it helped

  9. #9
    Registered User
    Join Date
    May 2006
    Posts
    17

    Question Re: Unique Handset ID or Phone Number

    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
    Join Date
    Jul 2005
    Posts
    89

    Re: Unique Handset ID or Phone Number

    satya i will advice you delete this message and post it as a new topic so others can see it

  11. #11
    Super Contributor
    Join Date
    Mar 2006
    Location
    Phoenix, AZ. USA
    Posts
    556

    Re: Unique Handset ID or Phone Number

    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
    Join Date
    Mar 2006
    Posts
    516

    Re: Unique Handset ID or Phone Number

    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
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: Unique Handset ID or Phone Number

    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
    Join Date
    May 2006
    Posts
    17

    Re: Unique Handset ID or Phone Number

    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
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: Unique Handset ID or Phone Number


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
  •  
×