title: Android coding with switch (String)
body: <p>I'm developing an android app on eclipse, when I try some code like </p>
  
  <pre><code>switch(String){
   ......
  }
  </code></pre>
  
  <p>it give me the following error</p>
  
  <pre><code>Cannot switch on a value of type String for source level below 1.7. Only convertible int values or enum variables are permitted
  </code></pre>
  
  <p>so I changed the compiler to 1.7, then it give me another error </p>
  
  <pre><code>Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools &gt; Fix Project Properties.
  </code></pre>
  
  <p>So, is there anyway to let switch(String) works in android application?
  or I have no choice but to use </p>
  
  <pre><code>if(){}
  else if(){}
  else if(){}
  ........
  </code></pre>