How can I know an activity is going to be killed by OS?
<p>I know I can use isFinishing() in onPause() to know whether an activity is going to be killed by finish(). </p>

<p>Then, how can I know an activity is going to be killed by OS temporarily due to low memory?</p>

<p>Thanks.</p>
