Making my application crash more gracefully
<p>I have an app that is running pretty stably (no more crashes actually), but as everybody knows your program crashes as soon as it gets in the hands of somebody else :D</p>

<p>What I would like is to find a(all) the place(s) where I can put a try{}catch(){} to be able catch and control what happens when the app crashes unexpectedly (display a better message, send log, possible recovery...)</p>

<p>I know its surely not that simple but still it would be good if there was a way to catch most of them.</p>

<p>(for example there is a small bug in GLSurfaceView that when it is being closed causes sometimes to crash because of an EGL swap buffer)</p>

<p>any ideas? </p>
