Developing Applications for LowMemoryDevices in WindowsPhone

Introduction

Last week our team was working on a Windows Phone 7 project and we also wanted to focus on 256 MB devices. The issue was that we didn't wanted to initialize periodic tasks and resource intensive operations, for that we needed to detect whether the device is a low memory device or not. To detect it we discovered an option available in Windows Phone and used that to detect whether it is a low memory device or not.

Let's work it out.

We shall use device extended properties as in:
  • using Microsoft.Phone.Info;

Using it we have discovered a few lines of code that you can use in your application to detect whether the Windows Phone is a low memory device or not.

low memory devices

Use in application life cycle methods to make best use of it and you could do a nice optimization of low memory devices.

Will be back soon with new tips.

Happy Coding!

Personal Blog: Blend Unleashed.

Next Recommended Reading Build Windows Phone 7 Applications