How to get physical device properties on Windows Phone 7

Damir Dobric Posts

 

Damir@Phone    







       
twitter 

 

One Windows Phone application should not exceed the limit defined by Application Certification Requirements. This information and many other physical idevice nformation can be queried by using of DeviceExtendedProperties helper.

To help you get all information I post here the method which query for all of supported properties:

        private static void physicalInformation()
        {
            string ApplicationCurrentMemoryUsage = DeviceExtendedProperties.GetValue("ApplicationCurrentMemoryUsage").ToString();
            string DeviceName = DeviceExtendedProperties.GetValue("DeviceName").ToString();
            string DeviceManufacturer = DeviceExtendedProperties.GetValue("DeviceManufacturer").ToString();
            string DeviceFirmwareVersion = DeviceExtendedProperties.GetValue("DeviceFirmwareVersion").ToString();
            string DeviceHardwareVersion = DeviceExtendedProperties.GetValue("DeviceHardwareVersion").ToString();
            string DeviceTotalMemory = DeviceExtendedProperties.GetValue("DeviceTotalMemory").ToString();
            //byte[] DeviceUniqueId = DeviceExtendedProperties.GetValue("DeviceUniqueId") as byte[];
        }

To give you a feeling, my emulator has 372 MB physical memory.


Posted Sep 22 2010, 06:37 PM by Damir Dobric
Filed under:

Add a Comment

(required)  
(optional)
(required)  
Remember Me?
developers.de is a .Net Community Blog powered by daenet GmbH.