Avoid (limit) low memory force close of an activity
<p>I have a problem with an activity force close in android when memory fell down.</p>

<p>My activity has a button that calls a particular class, where some tasks are performed in a separate thread (it should take up to 10'). 
On the emulator I have no problem, but on the phone sometimes the activity went closed for low memory reason. 
I read about startForeground method for services, may I apply the same logic to my app? How can I do it?</p>

<p>Many thanks for any suggestion.</p>

<p>Alessandro.</p>
