,

Reading Device Information

The Microsoft.Phone.Info.DeviceStatus class is a static class used to retrieve information about the phone device, such as the device manufacturer, firmware version, and total memory available to your app.

Table 2.3 describes each property of the DeviceStatus class.

TABLE 2.3. DeviceStatus Properties

Image

In the first release of the Windows Phone OS, the DeviceExtendedProperties class was used to retrieve many of the DeviceStatus property values. DeviceExtendedProperties has since been deprecated, and DeviceStatus takes its place for retrieving most device information.

The downloadable sample code contains a DeviceStatusView.xaml page, which displays each of the DeviceStatus properties. The memory related values have been converted from byte values to megabytes to make them more easily comprehendible (see Figure 2.8).

Image

FIGURE 2.8 DeviceStatusView page.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.146.47