Windows Phone 7 : How to get Phone and Application memory information

Windows Phone 7 : How to get Phone and Application memory information

  • Comments 0

If you want to get the memory information of your phone and application

//Total Phone Memory (in bytes)
var totalMemory = Microsoft.Phone.Info.DeviceStatus.DeviceTotalMemory;
textBlock1.Text += Environment.NewLine + (totalMemory/(1024 * 1024)).ToString();

//Application Current Memory Usage (bytes)
var appCurrentMemoryUsage = Microsoft.Phone.Info.DeviceStatus.ApplicationCurrentMemoryUsage;
textBlock1.Text += Environment.NewLine + appCurrentMemoryUsage.ToString();
 

Namoskar!!!

Leave a Comment
  • Please add 7 and 5 and type the answer here:
  • Post