title: I want to set flag in android application which retain its value even forced close the app
body: <p>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.</p>
  
  <p>How can I do it. I am new in android. if any sample code, it will be appreciated. </p>
  
  <p>Thanks in advance </p>