What's the correct way to save state of an Activity
<p>I have an Activity, which contains a bunch of check boxes and a submit button.</p>

<p>When the submit button is clicked, the activity will exit (finish() will be called). Before the activity exits, I want to save the states of the check boxes in the activity, so when the activity starts again, the check boxes can stay in their previous states. What's the correct way to save these states? Should I use SharedPreference.</p>

<p>Thanks.</p>
