Is there a way to get total device ram?I need it for an optimization
<p>I have a lrucache that could contain static data, so that even if my app is closed when user returns he can find data faster.</p>

<p>However this takes about 10-15 MB of memory and so I'd like to make an if branch like this</p>

<pre><code>if(deviceOverallRAM &gt; treshold)
      preserve static memory on app exit
else
      clear static memory on app exit
</code></pre>

<p>So, can I get device's ram, maybe through some hidden api? And what would be a good value for the treshold?</p>
