Skip to content

Instantly share code, notes, and snippets.

@dgkanatsios
Created July 25, 2014 18:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgkanatsios/6d6ea40109c59de82a0c to your computer and use it in GitHub Desktop.
Save dgkanatsios/6d6ea40109c59de82a0c to your computer and use it in GitHub Desktop.
A snippet to obtain device info on Windows Phone
public static string GetDeviceInfo()
{
string returnvalue = string.Empty;
try
{
returnvalue = string.Format("manufacturer {0}, name {1}, firmware {2}, hardware {3}",
DeviceStatus.DeviceManufacturer, DeviceStatus.DeviceName, DeviceStatus.DeviceFirmwareVersion, DeviceStatus.DeviceHardwareVersion);
}
catch
{
}
return returnvalue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment