i am trying to make a little game.
There the Background color Randomly change from Blue to Green and back to Blue. If the user click the Blue "Button" then he lose.
My problem is how do i get the Background Color? and Compare it with R.color.colorGreen
I have tried some Examples from here but nothing works.
if(Integer.parseInt(button.getBackground().toString()) == R.color.colorBlue)