title: app.assets.get libgdx on a public static function
body: <p>I have this function on my xml class is for puting the imagens on a texture , String ficheiro is the name of the file, SpriteCena  is the sprite</p>
  
  <pre><code>public class xml {
  
  private static Texture TexturaCaixaDialogo;
  private static Sprite SpriteCena;
  private final MyGdxGame app;
  
  public xml(final MyGdxGame app){
      this.app = app;
  
  }
  </code></pre>
  
  <p>.................. other code .........</p>
  
  <pre><code>public static carregarcena(String ficheiro){
     TexturaCaixaDialogo = app.assets.get("cenarios/cenas/"+ficheiro,Texture.class);
     SpriteCena = new Sprite(TexturaCaixaDialogo);
  }
  </code></pre>
  
  <p>}// end of xml class</p>
  
  <p>what it does is to get a texture from my libgdx  texture manager loader
  and it give me an error on <strong>app.assets</strong> . the erro is : <strong>Cannot make a static reference to the non-static field app</strong>   </p>
  
  <blockquote>
    <p>the function carregarcena() must be public and static</p>
  </blockquote>
  
  <p>any solution?</p>