Windows Phone
Windows Phone
This Friday (10/12/2010) I was happy to be invited to join Tech News Weekly (a news show on the GFQ web-based television Network). We covered some cool topics and I got to talk about Windows Phone 7 and XBOX Kinect, it was a lot of fun. If you missed the live broadcast then go watch or listen the archive: Tech News Weekly Ep.8 – Its On Like Donkey Kong 11-12-10
Today I had to write some code that would detect the Emulator we use to test WP7 Silverlight applications. For some reason though I had a really hard time finding the answer. Therefore I decided to post the solution here and to link the thread I finally did find which helped me find figure it out, which is this thread here. Solution: string DeviceTypeDetected = string.Empty;
switch (Microsoft.Devices.Environment.DeviceType)
{
case Microsoft.Devices.DeviceType.Device:
DeviceTypeDetected = "Real Device Detected!";
break;
case Microsoft.Devices.DeviceType.Emulator:
...