软件编程
位置:首页>> 软件编程>> Android编程>> android获取手机唯一标识的方法

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

  发布时间:2022-09-16 15:55:39 

标签:android,手机,标识


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();

0
投稿

猜你喜欢

手机版 软件编程 asp之家 www.aspxhome.com