The following code shows how to set the background color of a button in API 23. How can I get the similar functionality in former APIs?
Button aButton = (Button) findViewById(R.id.aButton);
aButton.setBackgroundColor(getResources().getColor(R.color.aColor));