×

Discussion Board

Results 1 to 10 of 10

Hybrid View

  1. #1
    Registered User
    Join Date
    Dec 2012
    Posts
    1

    Getting Unique Id from all java phones especially from S40 devices

    Dear friends ,

    I am in urgent requirement of getting an unique identification number programatically from all j2me supported phones.
    As we already know getting IMEI / IMSI in S40 devices is almost not possible , bluetooth MAC address / obex push profile UUID may help.But
    for this , bluetooth should be turned on in mobile.And i don't know how many device will support jsr82.Is there some other unique id which will
    differentiate j2me devices?

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,561

    Re: Getting Unique Id from all java phones especially from S40 devices

    No, there are no other unique IDs than IMEI, Bluetooth or WLAN (when available) MAC addresses. Redesign your solution not to depend on such entirely, or so that some ID you generate/assign yourself is sufficient (possibly in conjuntion with a username/password combination).

  3. #3
    Registered User
    Join Date
    May 2012
    Location
    Hyderabad,AP,India.
    Posts
    62

    Re: Getting Unique Id from all java phones especially from S40 devices

    Hi developer89,

    Check this link.
    You can generate a UUID from the timestamp + an optional 4-6 digit random generated number. And store in a permanent RMS or a hidden file.
    You can use that UUID as unique identifier for your application. I have used this implemetation in C1-01 and it worked for me...
    Regards,
    Harsha

  4. #4
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: Getting Unique Id from all java phones especially from S40 devices

    If its a connected app, you can generate this UUID (as a auto-generated number in your server side db) on the server and send it to device first successful login and store it on the client device in RMS to make it a part of all future request generated from the client app.
    thanks,
    ~Amitabh
    (Champion of the Month -Aug'13)
    Follow me on my blog for Innovative Mobile Apps

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,692

    Re: Getting Unique Id from all java phones especially from S40 devices

    Agreed, I was also thinking about suggesting the server-generated approach. However there is a downside too: it does not identify the user/device, it identifies the installation. So an uninstall-reinstall tricks it already which may be or may not be a problem, depending on the use-case.
    The same applies to the locally generated UUID/GUID.
    Last edited by wizard_hu_; 2012-12-05 at 09:44.

  6. #6
    Registered User
    Join Date
    May 2012
    Location
    Hyderabad,AP,India.
    Posts
    62

    Re: Getting Unique Id from all java phones especially from S40 devices

    For locally generated UUID, against every user it is stored in db and verifying against the id for every login works.
    And in the case of uninstalling the app....a reset for that UUID to a particular value and updating with the new UUID if that paticular reset value is met, works like a charm without any conflicts...
    Regards,
    Harsha

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,692

    Re: Getting Unique Id from all java phones especially from S40 devices

    Quote Originally Posted by harsha921 View Post
    And in the case of uninstalling the app....a reset for that UUID to a particular value and updating with the new UUID if that paticular reset value is met, works like a charm without any conflicts...
    Of course it will not conflict with anything since it gets a brand new UUID.
    I am talking about the use case when you want to identify a device say 2 years from now, regardless of having it formatted, software reinstalled etc. Such mechanism can not be accomplished without hardware ID-s.
    So uniqueness is easy, but having a persistent ID is not.

Similar Threads

  1. How do I retrieve the any unique ID - number from Java ME.
    By arrowandmoon in forum Mobile Java Networking & Messaging & Security
    Replies: 5
    Last Post: 2010-04-14, 11:37
  2. Can Java ME application runs on all devices which has Java?
    By marstelecom in forum Mobile Java General
    Replies: 4
    Last Post: 2009-09-07, 11:12
  3. Unique ID from java on Nokia E61
    By tubeman in forum Mobile Java General
    Replies: 2
    Last Post: 2006-03-13, 14:03
  4. Does Nokia devices have an unique identification number ?
    By altemir.soares in forum Mobile Java General
    Replies: 0
    Last Post: 2004-03-03, 10:57
  5. Replies: 1
    Last Post: 2002-12-27, 08:07

Posting Permissions

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