I am receiving hex color values from a server (in this form, #xxxxxx , example #000000 for black)
#xxxxxx
#000000
How do I convert this to an integer value
Answer is really simple guys, in android if you want to convert hex color in to int, just use android Color class, example shown as below
this is for light gray color
Color.parseColor("#a8a8a8");
Thats it and you will get your result.