Possible Duplicate:
OutOfMemoryError: bitmap size exceeds VM budget :- Android
I've researched this problem up and down and I can't find anything about my specific problem. I use .PNG files located in my drawable folder for button backgrounds. The buttons are large (about 150p x 150 p) and use images and gradiants to look nice. The backgrounds change upon pressing the button as defined in individual .xml files. The solutions i find in google seem to be for images called programmaticly and not images that are specified in layouts. When I constantly exit and enter different activities with different layouts and different buttons I will eventually get the out of memory error
04-27 22:18:46.227: E/dalvikvm-heap(512): 396900-byte external allocation too large for this process.
04-27 22:18:46.427: E/AndroidRuntime(512): Caused by: java.lang.OutOfMemoryError: bitmap size exceeds VM budget
My question is how do I allocate more memory when my images are specified in layouts and are not added programaticlly?