Android crashing in the field - how to log/read events and state at time of crash?
<p>I write an an Android application for an industrial process.    When I'm developing, attached to a PC, Eclipse, etc, I seldom see crashes.     But every so often I get reports from the field, or even our own in-house testers of crashes and force-stops of the app.    I can never reproduce these but I need to find out what's causing them.</p>

<p>I'd like to be able to get a Windows-DrWatson-style dump when a crash occurs.   What are my options for instrumenting my code to get a postmotem after a crash?    I want to read logcat messages programmatically, not attached to a PC. I'd also like a stack dump. I'd also like to know what was happening from the OS POV, e.g., what thread was running, what resources were being used, most recent TCP activity, etc, etc.  </p>

<p>What are my best options here?   Thanks in advance.</p>
