title: How to use getString() on static String before onCreate()?
body: <p>I am trying to use <code>getString()</code> to get an String from resources to assign it to an String array before my activity is created:</p>
  
  <pre><code>private static final String[] MenuNames = {
      Resources.getSystem().getString(R.string.LCMeterMenu),
      Resources.getSystem().getString(R.string.FrecMenu),
      Resources.getSystem().getString(R.string.LogicAnalyzerMenu),
      "Prueba con achartengine",
      Resources.getSystem().getString(R.string.BrazoMenu)
  };
  </code></pre>
  
  <p>When I use <code>Resources.getSystem().getString(R.string.LCMeterMenu)</code>, Eclipse doesn't complain but I get an error at runtime:</p>
  
  <blockquote>
    <p>Caused by: android.content.res.Resources$NotFoundException: String Resource ID #0x7f0a000a</p>
  </blockquote>
  
  <p>But if I put inside <code>onCreate()</code>:</p>
  
  <pre><code>Log.i("StringR", "String: " + getString(R.string.LCMeterMenu));
  </code></pre>
  
  <p>I get the String but I can't assign it to the final String I defined before. If I use only <code>getString()</code> before <code>onCreate()</code> I get and static error message. How can I use resources before <code>onCreate()</code> for global variables?</p>