How do you detect the windows phone 7/8 device brand version programmatically? - windows-phone-7

I know how to get the OS version, but I'm looking for something that can tell me what the device is (brand, version, etc). Example: Nokia Lumia 920 Anything close to it will be helpful!

Use Mango's DeviceStatus class to get information about the device.
MessageBox.Show(DeviceStatus.DeviceManufacturer + " " + DeviceStatus.DeviceName);

From the DeviceExtendedProperties class, the DeviceManufacturer and DeviceName properties.

Related

How I can get mobile operator name (UWP)?

I need to get information about mobile operator( if device is phone or if i got device with sim slot). I couldn't find any similar code to this:
textBlock1.Text = "Mobile Operator :- " + DeviceNetworkInformation.CellularMobileOperator.ToString();
which only works on Windows Phone 8.1 .
Currently this is not possible to retrieve such information on the UWP.
Even if you use Windows.Networking.Connections API.
Maybe in the future this will be included.

Check for sim is available or not in windows phone 8.1?

Is there any api or class to check whether sim is available in the phone . I'm working windows phone silverlight application.
Thanks & Regards,
Pallam Madhukar
Not possible with the current API.
I'm using SilverLight Application so we can get
DeviceNetworkInformation.CellularMobileOperator
if it returns empty string sim is not available else sim is available.

How to get MCC and MNC in windows phone 8

MCC,Mobile Country Code
MNC,Mobile Network Code
Is there a way to get MCC and MNC in Windows Phone 8?
We can't get MCC and MNC on Windows Phone 7 (and 8) devices.
Maybe with Windows Phone 9 ? :D
It's possible with Windows Mobile (with Radio Interface Layer) , but it's not implemanted on Windows Phone...
You can Get other Network Informations with the Network Information class.
Please Read this MSDN page for more informations.
Also, you can vote here for improve features has you want in Windows Phone plateforme... ANd here it's RIL page...
With some Nokia Lumia phones you can enter "Field Test" menu by selecting ##3282# on dial pad. At least my Lumia 1020 with Lumia Cyan update shows that menu which gives very precise information about mobile network. You can also force the phone to use GSM/UMTS/LTE only and select different bands. I can see RCC Status, UARFCN, LAC, RAC, MCC-MNC, UTRAN Registration area, EC/Io, SINR, RSCP, ECNO and many more attributes throug this menu.

Track Windows Phone system tray state changes: battery+time or full

When the Windows Phone's system tray is visible, it could be in two states partially: battery + time or full (if all data are shown). I would like to know in my application that the state is changed. Has anybody an idea how it can be done?
Using the current version of the Windows Phone SDK, you can't really do this...

How to get current location in Windows Phone 7 on Emulator

I am new in Windows Phone 7. I want to develop an application that tells current position (lat long) of device and highlight the current position in bing map that works on emulator because I dont have device for testing. Any help.
Thanks in advance.
Have a look at this http://create.msdn.com/en-us/education/catalog/article/GPS-Emulator
CodePlex has a FakeGPS utility (just a .cs file).
I just hard-code a known location:
if (location == GeoCoordinate.Unknown)
{
// Use Palo Alto if we're running in the emulator.
location_string = "&latitude=37.47&longitude=-122.12";
}

Resources