I want to know how this conversion could be done:
I've checked that the following instruction:
int color= ((ColorDrawable) dialog1.getButton(AlertDialog.BUTTON_POSITIVE).getBackground()).getColor();
Gives in some devices the result color=-12434878, it's checked that the color is equivalent to the HTML color #424242.
But point is I see no way for transforming from one to the other and neither I find any reference for this.
How could this be done?