简体   繁体   中英

how can get android device SN code in unity3d?

How can get android device SN code in unity3d ? I try with

SystemInfo.deviceUniqueIdentifier.ToString()

I see more info but I can`t find my SN device code .

Try this one

TelephonyManager tManager = (TelephonyManager)myActivity.getSystemService(Context.TELEPHONY_SERVICE); String uid = tManager.getDeviceId();

Mentation android:name="android.permission.READ_PHONE_STATE" in your manifest file

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM