A Nokia example for retrieving hardware information of a Windows Phone device. The methods demonstrated by this app can be used for adapting your application to wider range of phone models; if a phone does not support a certain non-vital feature of your application, you can gracefully adapt by hiding that feature dynamically.
The app consists of two pivot views. The Availability view lists the phone's capabilities, such as sensors, based on the values retrieved from the corresponding APIs. The Characteristics view was added to version 1.1 and it provides the screen resolution of the phone and the amount of memory used and available for the application itself.