title: How do I test the "App Process Killed" route on Android?
body: <p>In the flow diagram for an Android app activity lifecycle (shown below) there is a route by which the 'App process' is killed and <code>onDestroy()</code> is not called. It seems this is most commonly done to free up memory resources for a different activity.</p>
  
  <p>All that is fine, but how do I test this scenario? Either on device or in the simulator.</p>
  
  <p><a href="https://i.stack.imgur.com/4s8Ge.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4s8Ge.png" alt="enter image description here"></a></p>