public static int convertToColorInt(String argb) throws IllegalArgumentException {
  if (!argb.startsWith("#")) {
    argb="#" + argb;
  }
  return Color.parseColor(argb);
}

public static int convertToColorInt ( String argb ) throws IllegalArgumentException { if ( ! argb . startsWith ( "#" ) ) { argb = "#" + argb ; } return Color . parseColor ( argb ) ; }
for custom purposes . not used by colorpickerpreferrence
