title: android: get items from string array and show it one by one in text view
body: <p>as i write in title i need some help here for get items from string array and show it one by one in text view i have code that got them all in list view but i need show them on text view one by one each time random here my code and sorry about my bad english
  ,thanks for help anyway ...</p>
  
  <pre><code>public class MainActivity extends ListActivity {
  
  String[] mTestArray;
  
      /** Called when the activity is first created. */
      @Override
      protected void onCreate(Bundle savedInstanceState) {
  
          super.onCreate(savedInstanceState);
  
          // Create an ArrayAdapter that will contain all list items
          ArrayAdapter&lt;String&gt; adapter;
  
          mTestArray =   getResources().getStringArray(R.array.planets_array);    
  
          /* Assign the name array to that adapter and 
          also choose a simple layout for the list items */ 
          adapter = new ArrayAdapter&lt;String&gt;(
                  this,
                  android.R.layout.simple_list_item_1,
                  mTestArray);
  
          // Assign the adapter to this ListActivity
          setListAdapter(adapter);
      }
  }
  </code></pre>
  
  <p>XML file: </p>
  
  <pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context=".MainActivity" &gt;
  
      &lt;TextView
  
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_centerHorizontal="true"
          android:layout_centerVertical="true"
          android:text="@array/planets_array"
  /&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>and string array file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  
  &lt;resources&gt;
      &lt;string-array name="planets_array"&gt;
          &lt;item&gt;Mercury&lt;/item&gt;
          &lt;item&gt;Venus&lt;/item&gt;
          &lt;item&gt;Earth&lt;/item&gt;
          &lt;item&gt;Mars&lt;/item&gt;
      &lt;/string-array&gt;
  &lt;/resources&gt;
  </code></pre>