title: Android: Cannot make a static reference to the non-static method getResources() from the type View
body: <p>I've got problem with my simple apliccation.
  I don't want paste tons of code.
  I've got class <code>Zaladuj</code> where i must load files using <code>getResources()</code>.</p>
  
  <pre><code>loading_screen = BitmapFactory.decodeResource(Widok.getResources(),R.drawable.loading_screen);
  </code></pre>
  
  <p>On this line i've got error:</p>
  
  <blockquote>
    <p>Cannot make a static reference to the non-static method getResources() from the type View.</p>
  </blockquote>
  
  <p>I put all classes codes here: <a href="http://www.pcyra.pl/badpanda" rel="nofollow">http://www.pcyra.pl/badpanda</a><br>
  It's not a website, it's just folder with my project. I create instance of View in MainActivity, The error shows in class <code>Zaladuj</code> on line 50.</p>