title: Android - getResources() and static
body: <p>I've got a class</p>
  
  <pre><code>public class Preferences extends PreferenceActivity implements OnSharedPreferenceChangeListener
  </code></pre>
  
  <p>out of this I try to call a method from another class. This method contains:</p>
  
  <pre><code>mFoo.setTextColor(getResources().getColor(R.color.orange))
  </code></pre>
  
  <p>But it doesn't work. It tells me <code>getResources</code> isn't static... how can I change this?</p>