How To Uniquely Identify An Android Device?

This question already has an answer here:

  • Is there a unique Android device ID? 40 answers

  • There are several options available, but there is no 100% guarantee that they will always work. See the android developer blog post: http://android-developers.blogspot.in/2011/03/identifying-app-installations.html

    Best method mentioned is Settings.Secure.ANDROID_ID


    You can check the IMEI or MAC address of the device.

    for IMEI

    TelephonyManager.getDeviceId will work

    for MAC

    WifiInfo.getMacAddress will work

    链接地址: http://www.djcxy.com/p/24642.html

    上一篇: 设备ID赋予空值

    下一篇: 如何唯一标识Android设备?