If there is an array int[] = new int[]{drawable1, drawable2}; then the elements contained in it are already int themselves.
I pull the drawable out of the button, like this:
Drawable d1 = SG6Button1.getDrawable(); The question is how do I convert it to an int ? This is necessary to compare with an array like the one above.