Looking for a unique phone identifier


Last Updated:

  1. James McMurray

    James McMurray Member This Topic's Starter

    Joined:
    May 5, 2009
    Messages:
    18
    Likes Received:
    0
    Hi, I'm trying to find a qay to uniquely identify a device that is not tied to the SIM card. That is, some sort of serial number or device identifier that will be different between two phones and will not change if the user swaps SIM cards. TelephonyManager.getDeviceId() and .getSimSerialNumber() won't work, as they are tied to the SIM card.

    BlackBerry has DeviceInfo.getDeviceId(). Does something like this exist in Android?
     

    Advertisement
  2. miXer

    miXer Well-Known Member

    Joined:
    Aug 12, 2010
    Messages:
    313
    Likes Received:
    51
    You can use:
    TelephonyManager t = Context.getSystemService(Context.TELEPHONY_SERVICE);
    String dID = t.getDeviceId();
     
  3. James McMurray

    James McMurray Member This Topic's Starter

    Joined:
    May 5, 2009
    Messages:
    18
    Likes Received:
    0
    As I mentioned in the opening post, TelephonyManager.getDeviceId() and .getSimSerialNumber() won't work, as they are tied to the SIM card. I'm hoping to identify unique devices, not SIM cards.
     
  4. JiMMaR

    JiMMaR Well-Known Member

    Joined:
    Jun 12, 2010
    Messages:
    363
    Likes Received:
    57
  5. miXer

    miXer Well-Known Member

    Joined:
    Aug 12, 2010
    Messages:
    313
    Likes Received:
    51
    On TelephonyManager help site it says getDeviceId() returns the unique device ID, for example, the IMEI for GSM and the MEID or ESN for CDMA phones.
     
  6. RNekic

    RNekic Member

    Joined:
    May 25, 2010
    Messages:
    12
    Likes Received:
    1

Share This Page

Loading...