简体   繁体   English

如何在unity3d中获取android设备的SN代码?

[英]how can get android device SN code in unity3d?

How can get android device SN code in unity3d ? 如何在unity3d中获取android设备的SN代码? I try with 我尝试

SystemInfo.deviceUniqueIdentifier.ToString()

I see more info but I can`t find my SN device code . 我看到更多信息,但是找不到SN设备代码。

Try this one 试试这个

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

Mentation android:name="android.permission.READ_PHONE_STATE" in your manifest file 清单文件中的android:name =“ android.permission.READ_PHONE_STATE”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将Arduino与Unity3D连接(使用Android设备)? - How to connect Arduino with Unity3D (using an Android device)? 如何在Android / iOS设备上调试unity3d? - How to debug unity3d on Android/iOS device? 在 Unity3d 引擎中编写游戏时,如何获取 android 中的滑动方向? - How can I get the swipe direction in android when coding a game in Unity3d engine? 将 Unity 游戏测试到 android 设备中会不断停止它 (Unity3D)? - Testing unity game into android device keeps stopping it (Unity3D)? 在Unity3D-Android项目中..如何获取内存警告? - In a Unity3D - Android project .. how to get memory warnings? 如何在unity3d中创建触摸屏android滚动? - how can create touch screen android scroll in unity3d? 如何在Android项目中包含unity3d项目? - How can I include unity3d projects in android ones? 在Unity3d中使用Android陀螺仪,如何将初始摄像机旋转设置为初始移动设备旋转? - Using the Android gyroscope in Unity3d, how can I set the initial camera rotation to the initial mobile device rotation? 如何从网络服务器下载视频并将其保存在设备上,然后使用unity3d在Android中使用默认应用播放该视频? - How can i download a video from web server and save it on device then play it with default app in android using unity3d? unity3d android获取keyhash运行时 - unity3d android get keyhash runtime
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM