title: Where to catch crashes in android application?
body: <p>I want to reset some shared preferences values when application crashed.
  I know I can implement UncaughExceptionHandler and than reset the shared preference values in the uncaughtException method, but where should I implement it? In a class that extends Application class or in a class that extends Activity and why?</p>