title: Android switch by values from strings.xml
body: <p>I'm new with Android and want to understand another one moment. I've got a strings.xml, which values I use in activity.xml. How use this values from JAva code in switch block?</p>
  
  <pre><code>private void gotoActivity(CharSequence text) {
      switch (text.toString()) {
          case getString(R.string.title_activity_first):
              break;
  
          case RADIO_BUTTON_SECCOND:
              break;
      }
  }
  </code></pre>
  
  <p>Not compiles 'cos of "Constant expression required". But the main benefit of strings.xml - is string constants in one place.</p>
  
  <p>Help plz.</p>