title: Simulate killing of activity in emulator
body: <p>I would like to test out <code>onSaveInstanceState</code> and <code>onRestoreInstanceState</code> for my app on the emulator.</p>
  
  <p>I have found <a href="https://stackoverflow.com/questions/2355884/how-to-simulate-killing-activity-to-conserve-memory">this</a>, which says that we could simulate this during orientation change, but I'm storing some of my variables on the application level (subclass <code>android.app.Application</code>), so the orientation change does not wipe out the variables.</p>
  
  <p>So my question is, how can I simulate the low memory situation thus killing of my activities?</p>
  
  <p>Hope I've made myself clear. Thanks</p>