I'm using gallery and imageswitcher to show images in, the adapter is a custom adapter called ImageAdapter, I want the users to choose the images in the gallery themselves either through an ACTION_GET_CONTENT intent or ACTION_IMAGE_CAPTURE intent. The intent are working fine and the images are put in the gallery widget, when I want to display the the first Image in the ImageSwitcher it show fine, when clicking the second image the application stops due to "Out of memory exception". The Log points to the line of code where I assign the image to the ImageSwitcher :
As you can see I tried setting destroyDrawingCache() on the ImageSwitcher to free some resources but it didn't make any difference.
Surely this must be possible to to can any body help me ?