title: Can you track when an android application has been terminated?
body: <p>Looked at android documentation and it appears that we don't have the ability to know when an app shuts down.  Whether it was explicitly by the user or automatically by the operating system.</p>
  
  <p>Below is the <a href="http://developer.android.com/reference/android/app/Application.html#onTerminate%28%29" rel="noreferrer"><code>onTerminate()</code> documentation</a> which is only available in the emulated scenario. </p>
  
  <pre><code>public void onTerminate()
  </code></pre>
  
  <blockquote>
    <p>Since: API Level 1 </p>
    
    <p>This method is for use in emulated process
    environments. It will never be called on a production Android device,
    where processes are removed by simply killing them; no user code
    (including this callback) is executed when doing so.</p>
  </blockquote>
  
  <p>Does anyone have any other approaches to report back when the user closes the application? </p>
  
  <p>We need to know from a pilot/usability standpoint if we need to incorporate additional functionality into our future production app.</p>