Minh Thai
Minh Thai

Reputation: 578

Check if memory is low

I have some heavy tasks in my app so I want to run them only when the phone is not busy or has much free memory. Therefore I want to know how to check if the phone memory is low

Upvotes: 1

Views: 58

Answers (1)

McGarnagle
McGarnagle

Reputation: 102753

There's a property ApplicationCurrentMemoryUsage in the DeviceStatus class. Combined with ApplicationMemoryUsageLimit, this should be enough to tell when you're running low on memory.

Upvotes: 1

Related Questions