Start writing your own WP7 Application

Here is the webcast I recorded in Chinese, hope developers in Hong Kong can learn more in writing Windows Phone 7 Application.

http://www.facebook.com/video/video.php?v=142916879062634

More Webcast will be put up here when I finished my final exam in University ūüôā

Advertisements

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();
}