title: loading more100 images in to dynamic button from drawable folder, out of memory error while using more than 150 images from drawable folder in android
body: <p>i am developing kids 1 to 100 learning number speaching application. here i used nearly 100 images used to refer the every images.</p>
  
  <p>i have two two levels. dynamically creating buttons, runtimely load images into buttons here.
  one is for number showing with images level.
  another one is for alphabetic with images showing level.
  totally i used 150 images from drawable folder.all images are PNG format with width and height is nearly each one 240 into 210 like that..</p>
  
  <p>when i click NUMBERS level button ,  that part working fine. when i get back second alphabetic level its completely application crashed.
  Error is: Out of Memory error only..</p>
  
  <p>I refered this stack link : <a href="https://stackoverflow.com/questions/477572/strange-out-of-memory-issue-while-loading-an-image-to-a-bitmap-object?rq=1">Strange out of memory issue while loading an image to a Bitmap object</a></p>
  
  <p>they told like, get the image and decode and load it into drawable.
  here exactly i dont know , how to get image from drawable and load into bitmap and decode the image and set into dynamic button..</p>
  
  <p>note: here i dynamically created 100 buttons using for loop, that time, i need to load images.
  i created successfully everything. when i run the program, i am getting memory error.</p>
  
  <p>please help me solve this issue..</p>