获取手机的唯一标识

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

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/

 

posted @ 2014-06-18 16:06  虚空之眼  阅读(432)  评论(0编辑  收藏  举报