title: TextView Cannot Be Resolved
body: <p>Now I know these are fairly common issues, but I'm using a textview that cannot be resolved. I've cleaned the project, import android.widget.TextView, but it continues to flag as unresolved.</p>
  
  <p>This is the code I'm using:</p>
  
  <pre><code>public void onStart() {
          super.onStart();
  
          HttpClient client = new DefaultHttpClient();
          HttpGet request = new HttpGet("http://1.php");
          HttpResponse response = client.execute(request);
  
          // Get the response
          BufferedReader rd = new BufferedReader
            (new InputStreamReader(response.getEntity().getContent()));
  
          String line = "";
          while ((line = rd.readLine()) != null) {
              TextView.append(line);
          } 
  
      }
  </code></pre>
  
  <p>TextView in activity_main:</p>
  
  <pre><code>&lt;TextView
          android:id="@+id/TextView"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:ems="10"&gt;
  
  
  
      &lt;/TextView&gt;
  </code></pre>
  
  <p>Any ideas on this please?</p>
  
  <p>EDIT:</p>
  
  <pre><code>TextView textView = (TextView) findViewById(R.id.TextView1);
  
  String line = ""; 
  while ((line = rd.readLine()) != null) { 
      TextView1.append(line);
  }
  </code></pre>
  
  <p>The end line starting with TextView1 is providing the error stating it cannot be resolved. Just the <code>TextView1</code> though, not the entire line.</p>
  
  <p>EDIT 28/10/2012:</p>
  
  <p>Ok, so the TextView is now working, but in turn, other parts of the code are not. This is a screenshot showing exactly what. I can wrap each of these in a try and catch statement but then the app force closes on my Android device.</p>
  
  <p><a href="http://southwestdesign.org.uk/Code.jpg" rel="noreferrer">http://southwestdesign.org.uk/Code.jpg</a></p>
  
  <p>Any ideas on this one please?</p>