title: R. is not giving me an option for array
body: <p>I am new to android development. I'm trying to have my <code>string.xml</code> file add the string instead of hard coding the string in the <code>.java</code> file.</p>
  
  <p>I'm using <a href="http://developer.android.com/resources/tutorials/views/hello-listview.html" rel="nofollow">this</a> android developer tutorial and copied and pasted the code to make sure there are no typos.</p>
  
  <p>The problem I am having is when I enter <code>R.array</code> does not show up as an option. I am not really sure what is wrong. Here is the Java-code. I have put a <code>//</code> by the lines that is giving me trouble:</p>
  
  <pre><code>import android.app.ListActivity;
  import android.os.Bundle;
  import android.view.View;
  import android.widget.AdapterView;
  import android.widget.AdapterView.OnItemClickListener;
  import android.widget.ArrayAdapter;
  import android.widget.ListView;
  import android.widget.TextView;
  import android.widget.Toast;
  
  public class HelloListActivity extends ListActivity {
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          String[] countries = getResources().getStringArray(R.array.countries_array);
          //The R. does not offer array as an option
          setListAdapter(new ArrayAdapter&lt;String&gt;(this, R.layout.list_item, countries));
  
          ListView lv =getListView();
          lv.setTextFilterEnabled(true);
  
          lv.setOnItemClickListener(new OnItemClickListener(){
              public void onItemClick(AdapterView&lt;?&gt;parent, View view,
                      int posistion, long id){
  
              Toast.makeText(getApplicationContext(), ((TextView)view).getText(),
                      Toast.LENGTH_SHORT).show();
              }
          });
  
      }
  }
  </code></pre>
  
  <p>and here is my <code>strings.xml</code> file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
      &lt;string-array name="countries_array"&gt;
          &lt;item&gt;Bahrain&lt;/item&gt;
          &lt;item&gt;Bangladesh&lt;/item&gt;
          &lt;item&gt;Barbados&lt;/item&gt;
          &lt;item&gt;Belarus&lt;/item&gt;
          &lt;item&gt;Belgium&lt;/item&gt;
          &lt;item&gt;Belize&lt;/item&gt;
          &lt;item&gt;Benin&lt;/item&gt;
      &lt;/string-array&gt;
  &lt;/resources&gt;
  </code></pre>