title: How to deallocate/free memory in android game
body: <p>I created a 2d game for android using Bitmaps. After closing the game, android studio memory section shows that the memory is not de-allocated. So how can i de-allocate memory which is allocated for bitmaps.
  I have a Bitmap array called <code>chopper</code> and i am initializing like </p>
  
  <pre><code>    chopper[0] = BitmapFactory.decodeResource(getResources(), R.drawable.copter1);
      chopper[1] = BitmapFactory.decodeResource(getResources(), R.drawable.copter2);
      chopper[2] = BitmapFactory.decodeResource(getResources(), R.drawable.copter3);
  </code></pre>
  
  <p>So during closing the game i tried to free memory like</p>
  
  <pre><code>chopper[0]=null;
  </code></pre>
  
  <p>But it doesn't show free memory in android studio memory graph. Is it the way to free memory? If not how can i free the memory before closing the game.
  Thanks in advance</p>