I have some settings in the Application which I want to retain even when I am forced close the application . i.e. I want to maintain the flag value even after closing the application.
How can I do it. I am new in android. if any sample code, it will be appreciated.
Thanks in advance
Use the
SharedPreferencesclass to store simple scalar data such as flags.