title: bitmap size exceeds Vm budget error android
body: <p>When I change to landscape mode, few objects are created with bitmap of full screen.</p>
  
  <p>When I scroll the other object is called and its bitmap is displayed, when I doing this repeatedly , bitmap size exceeds <code>vm</code> budget error, I have done all the things like <code>recycle()</code>, set null and then called <code>GC()</code>, still I have same error. creating bitmap....   </p>
  
  <pre><code>    bitmap = Bitmap.createBitmap(ChartProperties.getChartWidth(), 
                      ChartProperties.getChartHeight(),
      Bitmap.Config.RGB_565);
  
      imageCache.put(String.valueOf(LandscapeChartActivity.getActiveFeature()),
                      new SoftReference(bitmap));
  
      if(imageCache != null){
  
          for (int i = 0; i &lt; imageCache.size(); i++) {
  
              if (imageCache.get(String.valueOf(i)) != null) {
                  imageCache.get(String.valueOf(i)).get().recycle();
                  imageCache.put(String.valueOf(i), null);                    
              }
  
          }
          Runtime.getRuntime().gc();
          imageCache.clear();
          imageCache = null;
  </code></pre>