Click here to Skip to main content
15,891,981 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am tring to fetch device specification, for this i need to implement Microsoft.Phone.Info namespace, it is perfectly working in wp8 but it is not work in windows phone 8.1
Is Anyone can tell me whats the alternative i can use in 8.1 or how to use this in 8.1
using Microsoft.Phone.Info;
C#
private void btnok_Click(object sender, RoutedEventArgs e)
{
        string deviceDetails = "Device details are::";
        deviceDetails += DeviceStatus.ApplicationCurrentMemoryUsage +",";
        deviceDetails += DeviceStatus.ApplicationMemoryUsageLimit + ",";
        deviceDetails += DeviceStatus.ApplicationPeakMemoryUsage + ",";
        deviceDetails += DeviceStatus.DeviceFirmwareVersion + ",";
        deviceDetails += DeviceStatus.DeviceHardwareVersion + ",";
        deviceDetails += DeviceStatus.DeviceManufacturer + ",";
        deviceDetails += DeviceStatus.DeviceName + ",";
        deviceDetails += DeviceStatus.DeviceTotalMemory + ",";
        deviceDetails += DeviceStatus.PowerSource;
 
        MessageBox.Show(deviceDetails);
        //to know whether device supports smooth streaming of multi resolution video
        if (MediaCapabilities.IsMultiResolutionVideoSupported)
        {
             MessageBox.Show("Supported");
        }
        else
        {
             MessageBox.Show("Not supported");
        }
 
}
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900