Get device information on Windows Phone 8.1 WinRT

I see many interesting question on StackOverflow every day. One of those today was the question about determining if Windows Phone 8.1 app is running in the emulator. Here's one way you can get that information! Finding out information about the device is useful in many ways, but one reason you might want that is definitely to know the difference between running on emulator and on a real device. Typical way of doing this on Windows Phone 8.0 was to use Microsoft.Devices.Environment.DeviceType and this actually keeps on working on Windows Phone 8.1 Silverlight, so…

Read More

Windows Phone location tool in emulator down? No problem!

To enable developers to test applications that somehow rely on location services without having an actual device, Microsoft added a location tool to the Windows Phone emulator back in Mango release. For some reason, the tool stopped working and the Bing map is not rendered if you try to use it today. Without a map, you can’t add pushpins to it which would simulate your device actually having latitude and longitude – location somewhere on Earth. Luckily, there’s a workaround! EDIT: The problem has been recognized by Microsoft, and the team seams to be working on it. Currently, there…

Read More

MVP Reconnect - say hi on Twitter

Microsoft MCSD

profile for igrali at Stack Overflow, Q&A for professional and enthusiast programmers

Latest Posts