title: SharedPreferences: how to clear all preferences when application crashes
body: <p>im new in android and im using SharedPreference of android for storing some states of the buttons, lets say storing the active state and unactive state of the button in SharedPreferences. But problems occurs whenever my application crashes, i want to clear my all preferences (i.e. making the button state on default value).</p>
  
  <p>so i was wondering that is there any way i can clear my app's preferences whenever my application crashes.</p>
  
  <p>Thanks</p>