When I try to get a color via getResources().getColor(R.color.yellow) in a normal Activity I get this exception:
getResources().getColor(R.color.yellow)
07-12 11:58:38.019: E/AndroidRu
int backgroundColor = Color.YELLOW;
instead of
int backgroundColor = getResources().getColor(R.color.yellow);