title: how to load and display a bitmap
body: <p>I would like to display some sort of graphics on the screen. I know that I could use bitmap. I keep my image in folder <code>res/drawable-hdpi</code> and it is <code>player.png</code>.</p>
  
  <p>Now I would like to load this image to my bitmap, how can I do this? Like this:</p>
  
  <pre><code>bitmap = BitmapFactory.decodeFile("/drawable-hdpi/player.png");
  </code></pre>
  
  <p>but it doesn't work. And I also would be grateful if somebody could tell me how to display this bitmap method on draw, like this: </p>
  
  <pre><code>public void draw(Canvas canvas){    
    canvas.drawBitmap(bitmap, posX, posY, null);
  }
  </code></pre>