独特的设备ID

Dee*_*pak 2 android

Android手机上有任何独特的身份证吗?如果是那么它有多少位数?我如何通过我的程序访问它?

谢谢迪帕克

Aar*_*n C 5

使用IMEI,IMSI ...时会出现几个问题,如下所述:

http://android-developers.blogspot.pt/2011/03/identifying-app-installations.html

建议的方法是使用:

http://developer.android.com/reference/android/provider/Settings.Secure.html#ANDROID_ID

String unique_id = android.provider.Settings.Secure.getString(getContentResolver(), android.provider.Settings.Secure.ANDROID_ID);
Run Code Online (Sandbox Code Playgroud)