Getting Physical Properties of WP7

If you dig deep into the Windows Phone 7 Application Development, you will find it is necessary to retrieve some of the properties of Windows Phone 7 of the user, for example the memory usage and Phone name, etc.

But how to do so?

We can query by using of DeviceExtendedProperties class.

All the supported properties are list in this page.

I will also post the code here

private static void physicalInformation()
{
string DeviceManufacturer = DeviceExtendedProperties.GetValue(“DeviceManufacturer”).ToString();
string DeviceName = DeviceExtendedProperties.GetValue(“DeviceName”).ToString();
byte[] DeviceUniqueId = DeviceExtendedProperties.GetValue(“DeviceUniqueId”).ToByte();
string DeviceFirmwareVersion = DeviceExtendedProperties.GetValue(“DeviceFirmwareVersion”).ToString();
string DeviceHardwareVersion = DeviceExtendedProperties.GetValue(“DeviceHardwareVersion”).ToString();
string DeviceTotalMemory = DeviceExtendedProperties.GetValue(“DeviceTotalMemory”).ToString();
string ApplicationCurrentMemoryUsage = DeviceExtendedProperties.GetValue(“ApplicationCurrentMemoryUsage”).ToString();
string ApplicationPeakMemoryUsage = DeviceExtendedProperties.GetValue(“ApplicationPeakMemoryUsage”).ToString();
}

Advertisements

One thought on “Getting Physical Properties of WP7

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s