title: Getting color value HEX code android
body: <p>Hey I am following Android Learning series from thenewboston. I am on this part : <a href="http://www.youtube.com/watch?feature=player_embedded&amp;v=QjQg8NkHGbw" rel="nofollow">http://www.youtube.com/watch?feature=player_embedded&amp;v=QjQg8NkHGbw</a></p>
  
  <p>Now, what I wanna do is save some basic color's like Red, Green etc somewhere (in code or in a file) and allocate them HEX code.</p>
  
  <p>Like if user type "red" in 'edittext' then I want to store value of "red" as "#FF0000" (just like #define in C++) and so on for blue, green etc. </p>
  
  <p>I am already familiar with file handling in C++ but this seems totally different.</p>
  
  <p>I have no idea how to store the value of string which itself would be string.</p>