title: Images Memory Management in Android
body: <p>This is one of the most asked question by beginners but still I couldn't  get any help unfortunately. In an activity I have a viewflipper to which I assign imageviews with images programatically ( around 100 images added to viewflipper using for loop ). Might be due to image size or due to the large no of images I get OutOfMemory Error for bitmaps. My Questions are:</p>
  
  <ol>
  <li>If this is because my drawables take memory space, is there any way by which I can release the space occupied by them?</li>
  <li>Can garbage collection be the reason for this? If so what's the solution?</li>
  <li>Since am using a viewflipper, is there any way by which I can only load my current, previous and next view of viewflipper? Will this help occupy less memory?</li>
  </ol>
  
  <p>Please let me know if my question is confusing or is not understandable. This is an important topic to me as I am facing this problem in almost all my apps.</p>