Windows Phone 8获取设备ID
来源:互联网 发布:触摸屏编程用什么软件 编辑:程序博客网 时间:2024/04/30 00:15
转自:http://linzr33.blog.163.com/blog/static/57380282013108113827209/
How to Get Unique Device ID from Windows Phone Using C#?
// get the unique device id for the publisher per deviceprivate void mGetDeviceUniqueId() { byte[] result = null; object uniqueId; if (Microsoft.Phone.Info.DeviceExtendedProperties.TryGetValue("DeviceUniqueId", out uniqueId)) { result = (byte[])uniqueId; } //转换设备ID为字符串 if (result != null) { AppSetting.getDeviceUniqueId = Convert.ToBase64String(result); } }
Note that , in Windows Phone 8 , you need to enable the “ID_CAP_IDENTITY_DEVICE” capability in your windows phone app manifest file for the above code snippet to work.
0 0
- Windows Phone 8获取设备ID
- Windows Phone 7中如何获取设备ID和用户ID
- 在Windows Embedded中获取设备ID
- Windows Phone 7(WP7)开发 获取设备信息
- Windows Phone 7(WP7)开发 获取设备信息
- 在Windows Phone 7中获取用户信息和设备信息
- Windows Phone 设备信息
- Windows Phone 8获取本机位置
- windows phone 获取回车键
- WinCE获取设备ID
- Android 获取设备ID
- 获取android设备id
- 获取设备范例ID
- 获取手机设备ID
- Android获取设备ID
- 获取设备ID
- 如何获取设备ID
- WINCE 获取设备ID
- 如何用正确的方法来写出质量好的软件的75条体会
- 自己写的Kmeans
- IOS 关闭键盘 退出键盘 的5种方式
- Hibernate 之 Why?
- c5 URLs and URIs - URIs
- Windows Phone 8获取设备ID
- 个人总结
- 中国特色程序员的「钱途」
- opencv常用函数整理(一)
- iOS 学习小菜鸟之蓝牙corebluetooth
- 无法绑定由多个部分组成的标识符的解决方法
- svn的更新于提交
- 金玉良缘
- FFmpeg入门(5)-An ffmpeg and SDL Tutorial 3