title: Android: ProgressDialog crashes when use resources to initialize the message
body: <p>When I use this code:</p>
  
  <pre><code>public class VideoSorveglianza extends Activity {
  
    private ProgressDialog mLoading;
  
        ...
  
        @Override
        public void onCreate(Bundle savedInstanceState) {
  
        ...
  
        mLoading = new ProgressDialog(this);
        mLoading.setMessage("Loading");
        ...
  }
  </code></pre>
  
  <p>All works fine. But If I try this:</p>
  
  <pre><code>mLoading.setMessage(getString(R.string.loading));
  </code></pre>
  
  <p>with the string declared in res/string.xml, nothing works!</p>
  
  <p>Is this a bug? I use API version 2.2.</p>
  
  <p>EDIT: my string.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
  ...
  &lt;string name="loading"&gt;Loading...&lt;/string&gt;
  ...
  &lt;/resources&gt;
  </code></pre>