Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User developer89's Avatar
    Join Date
    Dec 2012
    Posts
    1
    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
    Nokia Developer Moderator petrib's Avatar
    Join Date
    Mar 2003
    Posts
    9,430
    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 harsha921's Avatar
    Join Date
    May 2012
    Location
    Hyderabad,AP,India.
    Posts
    60
    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 im2amit's Avatar
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    2,917
    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
    (Poster of the Month -Dec'12)
    Follow me on my blog for Innovative Mobile Apps

  5. #5
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    27,747
    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 harsha921's Avatar
    Join Date
    May 2012
    Location
    Hyderabad,AP,India.
    Posts
    60
    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 wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    27,747
    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.

  8. #8
    Registered User harsha921's Avatar
    Join Date
    May 2012
    Location
    Hyderabad,AP,India.
    Posts
    60
    In that case it will generate a new local UUID if its not located and the reset mechanism follows which will solve the issue...
    Regards,
    Harsha

  9. #9
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    27,747
    Quote Originally Posted by harsha921 View Post
    In that case it will generate a new local UUID if its not located
    Agreed.
    and the reset mechanism follows which will solve the issue...
    Probably it will not. Since it is not possible to recognize that the device is already part of the system with an other UUID.

  10. #10
    Registered User harsha921's Avatar
    Join Date
    May 2012
    Location
    Hyderabad,AP,India.
    Posts
    60
    Actually we have to do that reset mechanism manually....as the cases for new installation/reinstallation/software updation is less...
    Regards,
    Harsha

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