title: How to get Callback when app is force stopped
body: <p>My app records audio using <a href="http://developer.android.com/reference/android/media/AudioRecord.html" rel="nofollow">AudioRecord</a>  API in the foreground or backgroud (when app is minimized) , but the audio file gets corrupted when the user force stop the application from application manager.</p>
  
  <p>I have managed to stop recorder and update the audio header in other scenarios. but the app doesn't get any callbacks when it is force stopped.</p>
  
  <p>How to handle this situation?</p>