How to get Devise Information using c# code in Windows Phone
Step 3 : This way you can get all devise information using c# code and Info class.
Step 1 : First create your windows phone application it's may be 7.0,7.1,8.0 application.
Step2: Open MainPage.xaml code file and paste below code in your file
using Microsoft.Phone.Info;
using Microsoft.Phone.Info;
long applicationCurrentMemoryUsage = DeviceStatus.ApplicationCurrentMemoryUsage;
long applicationPeakMemoryUsage = DeviceStatus.ApplicationPeakMemoryUsage;
string deviceFirmwareVersion = DeviceStatus.DeviceFirmwareVersion;
string deviceHardwareVersion = DeviceStatus.DeviceHardwareVersion;
string deviceManufacturer = DeviceStatus.DeviceManufacturer;
string deviceName = DeviceStatus.DeviceName;
long deviceTotalMemory = DeviceStatus.DeviceTotalMemory;
bool isKeyboardDeployed = DeviceStatus.IsKeyboardDeployed;
bool isKeyboardPresent = DeviceStatus.IsKeyboardPresent;
PowerSource powerSource = DeviceStatus.PowerSource;
long applicationPeakMemoryUsage = DeviceStatus.ApplicationPeakMemoryUsage;
string deviceFirmwareVersion = DeviceStatus.DeviceFirmwareVersion;
string deviceHardwareVersion = DeviceStatus.DeviceHardwareVersion;
string deviceManufacturer = DeviceStatus.DeviceManufacturer;
string deviceName = DeviceStatus.DeviceName;
long deviceTotalMemory = DeviceStatus.DeviceTotalMemory;
bool isKeyboardDeployed = DeviceStatus.IsKeyboardDeployed;
bool isKeyboardPresent = DeviceStatus.IsKeyboardPresent;
PowerSource powerSource = DeviceStatus.PowerSource;
Step 3 : This way you can get all devise information using c# code and Info class.
No comments:
Post a Comment
Thank you for your interest .