title: Error setting text to a textView from strings.xml via java code
body: <p>I just want to set a text in a textView from strings.xml using java code but I just can't, eclipse gives me this error: "textView1 cannot be resolved" and "textView2 cannot be resolved".</p>
  
  <p>Here is mi activity:</p>
  
  <pre><code>package com.example.activity;
  
  import android.app.Activity;
  import android.content.Intent;
  import android.os.Bundle;
  import android.widget.ImageView;
  
  public class Descripcion extends Activity{
  
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.descripcion);
  
      Intent i = getIntent();
  
      int position = i.getExtras().getInt("id");
      ImageAdapter imageAdapter = new ImageAdapter(this);
  
      switch (position){
      case 0:
  
      ImageView imageView0 = (ImageView) findViewById(R.id.full_image_view);
      imageView0.setImageResource(imageAdapter.mThumbIds[position]);
  
      textView1.setText(this,getString(R.string.case0));
      textView2.setText(this,getString(R.string.case0b));
  
      break;
  
      case 1:
  
      ImageView imageView1 = (ImageView) findViewById(R.id.full_image_view);
      imageView1.setImageResource(imageAdapter.mThumbIds[position]);
  
      textView1.setText(this,getString(R.string.case1));
      textView2.setText(this,getString(R.string.case0b));
  
      break;  
      }
  }
  }
  </code></pre>
  
  <p>I've beeing looking for a solution for about 3 hours but I can't fid it.</p>