How to set the button image for UIControlStateSelected in android?
<p>Hi i have button default it should be unselected,when i click it should be selected if i go next activity and if i come back it should be selected,if i was not selected before going next activity it should be unselected.how can i do this                final Button up8 = (Button) findViewById(R.id.adultup8);<br>
up8.setOnClickListener(new View.OnClickListener() {public void onClick(View view) { if(teeth[7]==0){up8.setBackgroundResource(R.drawable.adultup8); teeth[7]=8;}else{up8.setBackgroundResource(R.drawable.adultup8_pressed);teeth[7]=0;}}});</p>
