×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Regular Contributor
    Join Date
    Jan 2004
    Posts
    165

    IMEI / Serial number / Phone number

    Does anyone know if it is possible to get the IMEI / Serial number, or the mobile number of the phone from within a Java App? I need a unique ID per phone and that would seem to be the way to go.

    This is for MIDP1 or MIDP2 (preferably MIDP1 though).

  2. #2
    Registered User
    Join Date
    Mar 2009
    Posts
    2

    Post Re: IMEI / Serial number / Phone number

    EMI CURRUPTED

  3. #3
    Registered User
    Join Date
    Mar 2009
    Posts
    2

    Re: IMEI / Serial number / Phone number

    Quote Originally Posted by phridesilva View Post
    EMI CURRUPTED
    How can i Corect the EMI Number

  4. #4
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: IMEI / Serial number / Phone number

    Hi ,
    You can get the IMEI like this in j2me
    System.getProperty("com.siemens.IMEI");
    System.getProperty("com.samsung.imei");
    System.getProperty("com.sonyericsson.imei");
    System.getProperty("com.motorola.IMEI");
    System.getProperty("com.nokia.mid.imei");

    For phone number read the below article
    http://discussion.forum.nokia.com/fo...d.php?t=162579

  5. #5
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: IMEI / Serial number / Phone number

    Not sure what you mean by "corrupted".

    In practice, you cannot get the IMEI number on most mobile phones.

  6. #6
    Registered User
    Join Date
    Mar 2008
    Posts
    16

    Re: IMEI / Serial number / Phone number

    As far as I know, Nokia and Motorola require that your midlet is signed in order to be able to retrieve those "sensitive" data.

    /Lapi.

  7. #7
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: IMEI / Serial number / Phone number

    Quote Originally Posted by lapinos03 View Post
    As far as I know, Nokia and Motorola require that your midlet is signed in order to be able to retrieve those "sensitive" data.

    /Lapi.
    This is usually the case. Specifically, signed by the manufacturer or operator. Signing by the developer or Java Verified will not give you access to this.

    There maybe some devices that allow access to the IMEI to unsigned apps (some Nokia E-series devices, I think). But these are a minority.

    If you get (null) for IMEI properties, then the device simply does not allow access.

  8. #8
    Super Contributor
    Join Date
    Sep 2008
    Location
    Noida, U.P.
    Posts
    1,330

    Thumbs up Re: IMEI / Serial number / Phone number

    Hi All,

    here is something regarding IMEI information.

    http://mobilepit.com/10/how-to-get-i...me-javame.html


    is this useful ?

    thanks,
    jitu_goldie..
    thanks,
    jitu_goldie..

    KEEP TRYING..

  9. #9
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    198

    Re: IMEI / Serial number / Phone number

    [QUOTE=jitu_goldie;561448]here is something regarding IMEI information.

    ...url removed...

    is this useful ?
    /QUOTE]

    This is definitely not useful as it is completely wrong.

    A Java ME midlet must be signed to retrieve the IMEI number, and it must also be signed by an operator or manufacturer... this is not something that a normal Java ME developer can achieve.

    - Mike
    NAVTEQ Network for Developers
    The community for developing innovative location-based applications
    http://NN4D.com

  10. #10
    Super Contributor
    Join Date
    Sep 2008
    Location
    Noida, U.P.
    Posts
    1,330

    Thumbs up Re: IMEI / Serial number / Phone number

    Hi,

    [QUOTE=mikemoore;561473]
    Quote Originally Posted by jitu_goldie View Post
    here is something regarding IMEI information.

    ...url removed...

    is this useful ?
    /QUOTE]

    This is definitely not useful as it is completely wrong.

    A Java ME midlet must be signed to retrieve the IMEI number, and it must also be signed by an operator or manufacturer... this is not something that a normal Java ME developer can achieve.

    - Mike
    NAVTEQ Network for Developers
    The community for developing innovative location-based applications
    http://NN4D.com
    I think u was not read that document carefully. There is clearly mention that no need to sign the application to get IMEI number for S60 3rd edition devices..
    Please check and reply..

    thanks,
    jitu_goldie..
    thanks,
    jitu_goldie..

    KEEP TRYING..

  11. #11
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    198

    Re: IMEI / Serial number / Phone number

    Quote Originally Posted by jitu_goldie View Post
    I think u was not read that document carefully. There is clearly mention that no need to sign the application to get IMEI number for S60 3rd edition devices..
    The site you point to is wrong.

    - Mike
    NAVTEQ Network for Developers
    The community for developing innovative location-based applications
    http://NN4D.com
    Last edited by mikemoore; 2009-03-23 at 15:19.

  12. #12
    Super Contributor
    Join Date
    Sep 2008
    Location
    Noida, U.P.
    Posts
    1,330

    Thumbs up Re: IMEI / Serial number / Phone number

    Hi,

    Quote Originally Posted by mikemoore View Post
    The site you point to is wrong.

    - Mike
    NAVTEQ Network for Developers
    The community for developing innovative location-based applications
    http://NN4D.com
    Please mention the site which have right information.

    thanks,
    jitu_goldie..
    thanks,
    jitu_goldie..

    KEEP TRYING..

  13. #13
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    198

    Re: IMEI / Serial number / Phone number

    Quote Originally Posted by jitu_goldie View Post
    Please mention the site which have right information.
    There isn't one. Just try it on a phone, you'll soon see that all you ever get back is null. The common misconception that it is possible is due to a misreading of the documentation that says that the property exists. The property does exist, but it only ever returns null unless the midlet is signed by the operator or manufacturer.

    - Mike
    NAVTEQ Network for Developers
    The community for developing innovative location-based applications
    http://NN4D.com

  14. #14
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: IMEI / Serial number / Phone number

    There is a wiki article How to get the IMEI in Java ME.

    However, you have to read it carefully.

    A lot of people misunderstand this, presumably because:

    * they read "In Nokia phones you can get it with...", and go straight to try it out

    * they are not familiar with what is implied by "signed to either operator or manufacturer domain" (which basically means, "you can't do this")

    * not everyone speaks English as their first language.

    Also, a lot of people reply to forum posts that ask about getting IMEI numbers, saying "your midlet needs to be signed". At least one person I know of has paid out money for a Thawte certificate because he was told this, only to find out that it doesn't help him in the slightest.

    Apparently, unsigned apps can get the IMEI number, on a very, very small number of handsets. However, anyone who wants to get the IMEI number is not writing an app just for their own phone (since they could just do *#06# an read it off the screen). Chances are, they want their app to run on lots of peoples' phones, and they want some unique identifier for users. In that case, they need to get the IMEI number from different models of handset, and this, in practice, cannot be done.

    I appreciate everyone is trying to be helpful by listing system property names or pointing people in the direction of articles on this subject. But I think a lot of confusion and false hope would be avoided if we all make it clear that, with very, very few exceptions, you simply have no hope of reading the IMEI number from a handset.

    Cheers,
    Graham.

  15. #15
    Registered User
    Join Date
    Mar 2008
    Posts
    16

    Re: IMEI / Serial number / Phone number

    SonyEricsson phones from JP-7 allow you to retrieve the IMEI without the need to sign the midlet.
    Verified on K800i, G502.

    /Lapi

Posting Permissions

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