I want to set button background from Java code I have this code
public void Save(View sender){
Button btn=(Button)sender;
btn.setBackground(R.drawable.mybuttonbackground);
but this doesn't work and isn't compiled.
So How to set button background from Java Code
thank you for your answers.