title: I am not allowed to pass a string from resource file within a switch case [Android]
body: <p>I have few buttons and I have the following click listener for the same:</p>
  
  <pre><code> private View.OnClickListener onclick = new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              switch(v.getId()){
                  case R.id.home:
                      break;
                  case R.id.contact:
                      break;
                  case R.id.terms:
                      break;
                  case R.id.touch:
                      show(R.string.about_us); //Error here
                      break;
  
  
              }
          }
      };
  </code></pre>
  
  <p>On each button click I display the same popup, only the text differs. I have text in <code>strings.xml</code> file</p>
  
  <p>below is my dialog function:</p>
  
  <pre><code> public void show(String message){
          final Dialog dialog = new Dialog(this);
          dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
          dialog.setContentView(R.layout.terms);
  
          //dialog.setTitle("Terms &amp; Conditions");
          TextView text = (TextView) dialog.findViewById(R.id.text);
          text.setText(message);
          text.setTypeface(helv_light);
          ImageButton dialogButton = (ImageButton) dialog.findViewById(R.id.button1);
          // dialogButton.setTypeface(helv_light);
          dialogButton.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  dialog.dismiss();
              }
          });
  
          dialog.show();
      }
  </code></pre>
  
  <p>in case <code>R.id.touch:</code> My IDE complains with the following message: </p>
  
  <p>show(java.lang.string) cannot be applied to (int). </p>
  
  <p>If I replace <code>show(R.string.about_us);</code> with <code>show(""+R.string.about_us);</code> The error goes away, what do I miss here?  </p>