How do I clear the SharedPreferences or other permanent storage of my Android app from my app program?
<p>I need to retain some information so that I can access it when I launch my app after it is closed. I need to use that information on 'onCreate()' of my 'MainActivity'. But I need to clear/reset those information if the mobile is rebooted. So how do I know in the program if the mobile has been rebooted and the activity is launched for the first time after reboot?</p>