获取手机的唯一标识

获取安卓的手机或者平板的唯一标识,底纹

1import android.provider.Settings.Secure;

 

 

3private String android_id = Secure.getString(getContext().getContentResolver(),

 

4                                                        Secure.ANDROID_ID);

 

 

6  UUID deviceUuid = new UUID(androidId.hashCode(), ((long)tmDevice.hashCode() << 32) | tmSerial.hashCode());

 

7    String deviceId = deviceUuid.toString();http://www.huiyi8.com/jiaoben/

 

你可能感兴趣的:(获取)