title: How to Detect Lowmemory in android?
body: <p>My application has a lot of images and sometimes it crashes due to low memory.
  I wrote this function that I found on the developer site.
  <br/></p>
  
  <pre><code>public void onLowMemory(){
  
  }
  </code></pre>
  
  <p>But the problem is that this function never gets called during those low memory circumstances.
  What should I do to make this function to be called.
  I need to alert users when there is low memory on their device.</p>