//获得设备虚拟标示符 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

Windows Phone 的应用清单文件

wp8 入门到精通 虚拟标示符 设备ID的更多相关文章

  1. wp8 入门到精通 Utilities类 本地存储+异步

    public class CCSetting { public async static void AddOrUpdateValue<T>(string key, T value) { t ...

  2. wp8 入门到精通 仿美拍评论黑白列表思路

    static bool isbool = false; private void BindGameDelete() { Tile tile = new Tile(); List<Color> ...

  3. wp8 入门到精通 生命周期

  4. wp8 入门到精通 定时更新瓷贴

    public class ScheduledAgent : ScheduledTaskAgent { static ScheduledAgent() { Deployment.Current.Disp ...

  5. wp8 入门到精通 ImageCompress 图片压缩

    //实例化选择器 PhotoChooserTask photoChooserTask = new PhotoChooserTask(); BitmapImage bimg; int newPixelW ...

  6. wp8 入门到精通 Gallery

    <Grid x:Name="LayoutRoot" Background="Transparent"> <Grid.Resources> ...

  7. wp8 入门到精通 MultiMsgPrompt

    List<NotifyMsg> arraymsg = new List<NotifyMsg>(); List<NotifyInfo> ArrayNotifyInfo ...

  8. wp8 入门到精通 数据库更新字段(一)

    public class UserInfoDB : BaseDB { public UserInfoDB() : base(@"Data Source=isostore:\MakeLove\ ...

  9. wp8 入门到精通 启动系统分享照片任务

    PhotoChooserTask photoChooserTask = new PhotoChooserTask(); photoChooserTask.Completed += photoChoos ...

随机推荐

  1. FWT

    Fast Walsh-Hadamard Transform .pre 今天本来想看FFT的应用的...翻翻picks的博客发现了好东西Fast Walsh-Hadamard Transform,感觉挺 ...

  2. jquery数组内多维对象

    jquery数组内多维对象 var postData=[],obj,list; obj = !!obj ? obj : $('#dist_meici_checkinfo_form'); obj.fin ...

  3. aspx、ashx、asmx文件处理请求效率比较

    人生总是面临着许多抉择许多困惑!作为一名“攻城师”或“程序猿”的我们,工作的时候更是如此.你曾经是否苦恼过在系统中使用哪种文件编写客户端请求最合适或最高效呢?aspx.ashx.asmx到底该如何选择 ...

  4. Random Pick Index

    Given an array of integers with possible duplicates, randomly output the index of a given target num ...

  5. struts2框架 初始别

    struts2 是webwork和struts合并而来. 1.下载struts2 说明: Full Distribution: 为完整版下载,建议下载它 Example Applications:st ...

  6. oracle,mybatis主键自增长

    <insert id="insert" parameterType="resource"> <selectKey resultType=&qu ...

  7. ffmpeg-20160728-bin.7z

    ESC 退出 0 进度条开关 1 屏幕原始大小 2 屏幕1/2大小 3 屏幕1/3大小 4 屏幕1/4大小 S 下一帧 [ -2秒 ] +2秒 ; -1秒 ' +1秒 下一个帧 -> -5秒 f ...

  8. ada 图形编辑器 - GNAT GPL

    The GNAT GPL and SPARK GPL Editions are made available to the free software developers by AdaCore. T ...

  9. Java for LeetCode 206 Reverse Linked List

    Reverse a singly linked list. 解题思路: 用Stack实现,JAVA实现如下: public ListNode reverseList(ListNode head) { ...

  10. Python~第三方模块

    第三方库还有MySQL的驱动:MySQL-python,用于科学计算的NumPy库:numpy,用于生成文本的模板工具Jinja2 模块搜索路径 Windows下: 双\\   sys.path.ap ...