title: Getting Image w/ BitmapFactory
body: <p>I'm not sure why this is not getting my image. This is my first time working with android apps with java so idk what to do.</p>
  
  <pre><code>public class Player {
  
  private GameView view;
  
  private Bitmap bmp;
  public int x, y;
  
  public Player(GameView view) {
      this.view = view;
  
  }
  
  public void tick() {
  
  //This is my error here//
      bmp = BitmapFactory.decodeResource(getResources(), R.drawable.ic_launcher);
  
  }
  
  public void onDraw(Canvas c) {
      c.drawBitmap(bmp, x, y, null);
  }
  
  }
  </code></pre>
  
  <p>I'm getting an error when trying to set bmp equal to what I want it to be in my tick method for getResources(). I don't know why getResources() is wrong.</p>
  
  <p>Thanks</p>