title: How can I convert string to const class int value?
body: <p>I have variable: </p>
  
  <pre><code>String colorName = "BLUE";
  </code></pre>
  
  <p>I want to set this color to the paint in android application. It should be something like this:</p>
  
  <pre><code>paint.setColor ("Color." + colorName);
  </code></pre>
  
  <p>But I receive the error warning because argument for setColor() function should be int.
  Any ideas?Thanks.   </p>