convert int color to hex color in android
String hexColor = String.format("#%06X", (0xFFFFFF & intColor));
convert hex color to int color in android
String red = "#ff0000"; // red -- RRBBGG int redInt = Color.parseColor(red);