wp8 入门到精通 虚拟标示符 设备ID
//获得设备虚拟标示符 wp8
public string GetWindowsLiveAnonymousID()
{
object anid = new object();
string anonymousUserId = "";
try
{
if (UserExtendedProperties.TryGetValue("ANID2", out anid))
{
if (null == anid)
{
return string.Empty;
}
anonymousUserId = anid as string;
anonymousUserId = anonymousUserId.Substring(2, 32);
}
}
catch (Exception)
{
}
return anonymousUserId;
}

//获得设备id
//注意 同一个App在同一个手机使用设备Id相同 (包括重复卸载,更新)
// 不同的App在同一个手机使用设备Id不同 我觉得设备ID是绑定App的
public string GetDeviceId()
{
byte[] uniqueId = (byte[])DeviceExtendedProperties.GetValue("DeviceUniqueId");
string uinid = BitConverter.ToString(uniqueId);
System.Diagnostics.Debug.WriteLine(GetDeviceId());
return uinid.Replace("-", "");
}

同时加上两个能力
ID_CAP_IDENTITY_DEVICE
ID_CAP_IDENTITY_USER
用户名和邮箱是可以获取的 但是必须是越狱的手机 通过访问注册表获取 而且还可以修改liveID
越狱手机有:三星的那款WP8手机 华为W1
wp8 入门到精通 虚拟标示符 设备ID的更多相关文章
- wp8 入门到精通 Utilities类 本地存储+异步
public class CCSetting { public async static void AddOrUpdateValue<T>(string key, T value) { t ...
- wp8 入门到精通 仿美拍评论黑白列表思路
static bool isbool = false; private void BindGameDelete() { Tile tile = new Tile(); List<Color> ...
- wp8 入门到精通 生命周期
- wp8 入门到精通 定时更新瓷贴
public class ScheduledAgent : ScheduledTaskAgent { static ScheduledAgent() { Deployment.Current.Disp ...
- wp8 入门到精通 ImageCompress 图片压缩
//实例化选择器 PhotoChooserTask photoChooserTask = new PhotoChooserTask(); BitmapImage bimg; int newPixelW ...
- wp8 入门到精通 Gallery
<Grid x:Name="LayoutRoot" Background="Transparent"> <Grid.Resources> ...
- wp8 入门到精通 MultiMsgPrompt
List<NotifyMsg> arraymsg = new List<NotifyMsg>(); List<NotifyInfo> ArrayNotifyInfo ...
- wp8 入门到精通 数据库更新字段(一)
public class UserInfoDB : BaseDB { public UserInfoDB() : base(@"Data Source=isostore:\MakeLove\ ...
- wp8 入门到精通 启动系统分享照片任务
PhotoChooserTask photoChooserTask = new PhotoChooserTask(); photoChooserTask.Completed += photoChoos ...
随机推荐
- JavaScript——Window对象
1.serTimeout()和setinterval()可用于注册在指定的时间之后单词或者重复调用的函数. 2.window对象的location属性引用的是Location对象,表示该窗口当前显示的 ...
- [20160704]Addition program that use JOptionPane for input and output
//Addition program that use JOptionPane for input and output. import javax.swing.JOptionPane; public ...
- nginx 原理&知识
2015年6月4日 17:04:20 星期四 发现两个关于nginx原理的系列文章, 非常好 http://blog.sina.com.cn/s/blog_6d579ff40100wi7p.html ...
- Java for LeetCode 223 Rectangle Area
Find the total area covered by two rectilinear rectangles in a 2D plane. Each rectangle is defined b ...
- java入门 第三季2
java中的字符串 java中的常用类
- Linux中环境变量文件及配置(转载)
一.环境变量文件介绍 转自:http://blog.csdn.net/cscmaker/article/details/7261921 Linux中环境变量包括系统级和用户级,系统级的环境变量是每个登 ...
- 【leetcode】Climbing Stairs (easy)
You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb ...
- py随笔
while true,无限循环 str.isdigit判断是不是数字 +只能在两个两个相同的类型之间执行 iter(i)将i加入迭代器
- yii和wp做博客
第一步,安装yii和wp: 第二步,创建protected/components/ExceptionHandler.php文件 <?php class ExceptionHandler { pu ...
- ajax鼠标滚动请求 或 手机往下拉请求
Zepto(function($){ var url = $('.page-url').val(); var cur = false; var href_url = $('.page-url').at ...