title: Get string ressource into tab title
body: <p>I have following string array defintion to set the tab names:</p>
  
  <pre><code>private String[] tabs = { getResources().getString(R.string.Tab_1),
                                  getResources().getString(R.string.Tab_2) };
  </code></pre>
  
  <p>If I test it on the emulator and want to start the activity then it always fails to start.
  But if I hardcode the tab names into the array like this: </p>
  
  <p>private String[] tabs = {"Tab_1", "Tab_2"};</p>
  
  <p>Then it works. But I want the value from the string ressource, to be able to support more languages. Where is the error?</p>
  
  <p>Thanks in advance for any help.</p>