title: Error Message-The source attachment does not contain the source for the file ListView.class
body: <p>new to Android.  I get the following message in the debugger perspective:</p>
  
  <p>The source attachment does not contain the source for the file ListView.class
  You can change the source attachment by clicking the change attached Source Below</p>
  
  <p>Needless to say the app errors.  I've tried to change the source attachment to the location path: </p>
  
  <p>C:/Program Files/Android/android-sdk-windows/platforms/android-8/android.jar</p>
  
  <p>However, this did not work.</p>
  
  <p>Any thoughts would be much appreciated.</p>
  
  <p>Code is:</p>
  
  <pre><code>import android.app.ListActivity;
  import android.os.Bundle;
  import android.view.*;
  import android.widget.*;
  
  
  public class HelloListView extends ListActivity 
  {
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
  
        setListAdapter(new ArrayAdapter&lt;String&gt;(this, R.layout.main, COUNTRIES));
  
        ListView lv = getListView();
        lv.setTextFilterEnabled(true);
  
       lv.setOnItemClickListener(new AdapterView.OnItemClickListener() {
          public void onItemClick(AdapterView&lt;?&gt; parent, View view,
              int position, long id) {
            // When clicked, show a toast with the TextView text
            Toast.makeText(getApplicationContext(), ((TextView) view).getText(),
                Toast.LENGTH_SHORT).show();
          }
        });
      }
  
  
      static final String[] COUNTRIES = new String[] {
          "Afghanistan", "Albania", "Algeria", "American Samoa...
  </code></pre>
  
  <p>Thanks!</p>