title: Android, string resource not found
body: <p>I'm working on an App, and I am getting weired errors. I put in some String resource in <code>res/values/strings</code> and saved it. Now If I want to access it in an Activity I get an error like this</p>
  
  <pre><code>07-13 11:16:20.050: ERROR/AndroidRuntime(5883): Caused by: android.content.res.Resources$NotFoundException: String resource ID #0x7f060006
  </code></pre>
  
  <p>And I can't figure out why. 
  Resource looks like this:</p>
  
  <pre><code>&lt;string name="dialog_download_text"&gt;please wait while downloading&lt;/string&gt;
  </code></pre>
  
  <p>and I want to Access it like </p>
  
  <pre><code>public void onCreate(Bundle b){
      super.onCreate(b);
      String s = getResources().getString(R.string.dialog_download_text);
  }
  </code></pre>
  
  <p>I also looked into R.java and found my Entry</p>
  
  <pre><code>public static final class string {
      public static final int dialog_download_cancel=0x7f060005;
      public static final int dialog_download_text=0x7f060007;
      public static final int dialog_download_title=0x7f060006;
  }
  </code></pre>
  
  <p>I don't know what to do, because I never had a problem like this before.
  Please help me. Thanks all.</p>