title: Android: Pass string array from values to .java
body: <p>I am using this code to pull my string array from my values folder:</p>
  
  <pre><code>String achievementNames[] = getResources().getStringArray(R.array.achieveString);
      String achievementDescriptions[] = getResources().getStringArray(R.array.achieveDescript);
  </code></pre>
  
  <p>However, when I run this, it gives me a null pointer exception on those lines of code. Is there a better way to pull string arrays or is there an error in my code?</p>