Hi,
I have a scrollableview where i load some imageview. When a scrollend event is called i try to load next image (with the previous one and next one) but i still have all the previous image loaded like that when you scroll back image was already loaded. No problem for made that but when my image was to big i get an 'Unable to load bitmap. Not enough memory: null => java.lang.OutOfMemoryError' no problem with that, thats normal when you tried to keep big images in same time to have that kind of error.
Now my question, how (or/and where) can i catch the error OutOfMemoryError (i tried at the creation of imageview without success...)? Like that i can release some images from the memory and then reload the new one in the catch.
Why i want to made that? Cause my image didn't have all the same size and all scrollable view willn't have the same number of image so when i have a lot of 'small' image that was more usefull to have all images load for navigation of course :).
Thanks in advance for your answer.