1. vivekwindowsphone's Avatar
    hi i m using this code .,..
    object uniqueId;
    byte[] DeviceIDbyte = null;

    if (DeviceExtendedProperties.TryGetValue("uniqueId", out uniqueId))
    {
    DeviceIDbyte = (byte[])uniqueid;
    string deviceid = Convert.ToBase64String(DeviceIDbyte);
    MessageBox.Show(deviceid);
    }

    but notfind the device unique id bcz if() cindition is not true always falls
    plz help

    how to find DeviceuniqueID ..
    08-04-2015 08:10 AM
  2. RumoredNow's Avatar
    Moved to a more appropriate area...
    08-04-2015 03:56 PM
  3. jschristophe's Avatar
    In Windows Phone 8.1, I get the Phone Unique Id like this :

    private static string GetDeviceID()
    {
    HardwareToken token = HardwareIdentification.GetPackageSpecificToken(null);
    IBuffer hardwareId = token.Id;

    HashAlgorithmProvider hasher = HashAlgorithmProvider.OpenAlgorithm("MD5");
    IBuffer hashed = hasher.HashData(hardwareId);

    string hashedString = CryptographicBuffer.EncodeToHexString(hashed);
    return hashedString;
    }

    I don't know if this code compile in WP 8.0 but maybe it can help you...
    08-24-2015 03:01 AM
  4. LordNedox's Avatar
    Always used the same since WP7:
    var value = (byte[])DeviceExtendedProperties.GetValue("DeviceUniqueId");
    08-29-2015 04:49 AM

Similar Threads

  1. How can I connect my Lumia 535 to my tv?
    By Windows Central Question in forum Microsoft Lumia 535
    Replies: 5
    Last Post: 03-03-2017, 04:49 AM
  2. Replies: 5
    Last Post: 08-05-2015, 02:30 AM
  3. Windows 10 upgrade
    By David Appleby1 in forum Windows 10
    Replies: 2
    Last Post: 08-04-2015, 06:18 PM
  4. How do I download the Windows phone app from the Windows phone store website?
    By Windows Central Question in forum Ask a Question
    Replies: 1
    Last Post: 08-04-2015, 07:53 AM
  5. Replies: 0
    Last Post: 08-04-2015, 07:48 AM
LINK TO POST COPIED TO CLIPBOARD