title: how can i "reset" the canvas (and the bitmap used to draw into) so i can draw a new bitmap into the canvas?
body: <p>My loadMap() method generate a canvas.throwIfRecycled exception when i try to load a new map.<br>
  When i start the game, the initial map loads and work fine though,<br>
  its only when i try to load a new map that i get the exception ..  </p>
  
  <p>how can i "reset" canvas and the bitmap i use to draw into, so i can startover fresh with them ?<br>
  here's what i use to create and draw my maps:</p>
  
  <pre><code>picDest = Bitmap.createBitmap(width*tileSize, height*tileSize, Bitmap.Config.RGB_565);
  canvas = new Canvas(picDest);
  for (int y = 0; y &lt; height; y++) {
    for (int x = 0; x &lt; width; x++) {
      // process tile stuffs here ...
      /*
      col = ....:
      row = ....;
      */
      pic[x][y]= Bitmap.createBitmap(sheet, col*tileSize, row*tileSize, tileSize, tileSize);
      canvas.drawBitmap(pic[x][y],x*tileSize,y*tileSize,bitmPaint); 
    }
  }
  </code></pre>
  
  <p>so basicaly once i created and used picDest and canvas,<br>
  i cannot figure how to reset it all for when i want to load a new map..  </p>
  
  <p>tnx</p>