当前位置: 移动技术网 > 移动技术>移动开发>Android > android获取手机唯一标识的方法

android获取手机唯一标识的方法

2019年07月24日  | 移动技术网移动技术  | 我要评论

复制代码 代码如下:

import android.provider.settings.secure;

private string android_id = secure.getstring(getcontext().getcontentresolver(),secure.android_id);

uuid deviceuuid = new uuid(androidid.hashcode(), ((long)tmdevice.hashcode() << 32) | tmserial.hashcode());
string deviceid = deviceuuid.tostring();

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网