how to save instance the activity without refreshing?
<p>i switch to next screen  and then comes back to the original and wants to pick up where i  left off , save and restore data.In Activity 1:i have more than 10 buttons i can select and unselect button,if go to next screen and if i come back it should not reload,it should show me where i leftoff,</p>

<pre><code>    up1 = (Button) findViewById(R.id.adultup1);
    up1.setOnClickListener(new View.OnClickListener() {

        public void onClick(View view) {
            if (upt1 == 0) {
                up1.setBackgroundResource(R.drawable.adultup1);
                upt1 = 1;
            } else {
                up1.setBackgroundResource(R.drawable.adultup1_pressed);
                upt1 = 0;
            }
        }
    });  submit = (ImageButton) findViewById(R.id.next);
    submit.setOnClickListener(new View.OnClickListener() {
        public void onClick(View v) {
            TabFunctionality.setFirstTabFunctionality(TabFunctionality.FIRST_TAB, 1);
            Intent intent = new Intent(AdultTeeth.this, MainScreen.class);
            intent.putExtra("TEXT", view);
            startActivity(intent);
            finish();

        }
    });
}
</code></pre>
