Hi, I'm developing an App in which I download some pictures from a web (using httputils2), and then display it in the screen.
First, I download the Page (its a feed, so is an xml file), and parse it to have the links of the images (there are like 40 images). I have a List, which adds pairs of this links and a bitmap (which is empty at first).
Then, I download the first picture, and add the bitmap to the List, and display it to the user.
And then, it follows like this: While there is an image on the screen, the next image is beeing downloaded.
The idea is that the user can go forward and backward to see any image.
The problem that I'm having is that in about the image number 10 or more, I get an "Out of memory error". I guess that its about having lots of bitmap on ram. How can I manage this? I know that I can write to disk, but they will continue in ram I guess.
First, I download the Page (its a feed, so is an xml file), and parse it to have the links of the images (there are like 40 images). I have a List, which adds pairs of this links and a bitmap (which is empty at first).
Then, I download the first picture, and add the bitmap to the List, and display it to the user.
And then, it follows like this: While there is an image on the screen, the next image is beeing downloaded.
The idea is that the user can go forward and backward to see any image.
The problem that I'm having is that in about the image number 10 or more, I get an "Out of memory error". I guess that its about having lots of bitmap on ram. How can I manage this? I know that I can write to disk, but they will continue in ram I guess.