title: How to Fetch text from array.xml in android
body: <p>I am trying to fetch text from array.xml which i have added in strings.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;    
      &lt;string name="app_name"&gt;RawFetc&lt;/string&gt;
      &lt;string name="hello_world"&gt;Hello world!&lt;/string&gt;
      &lt;string name="action_settings"&gt;Settings&lt;/string&gt;
  
      &lt;string-array name="array" &gt;
          &lt;item&gt;Hello I am List&lt;/item&gt;
          &lt;item&gt; I am als a List&lt;/item&gt;
  
      &lt;/string-array&gt;    
  &lt;/resources&gt;
  </code></pre>
  
  <p>And the java class for this is </p>
  
  <pre><code>public class MainActivity extends Activity {
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          String[] arr = getResources().getStringArray(R.array.array);
  
      }
  }
  </code></pre>
  
  <p>I want to know the next step after this, to show the text when application get starts. Please help</p>