Ivan452
02-02-2011, 09:33 AM
Its me again :)
With a problem ofc.
I'm trying to show images in ImageView that I download from internet.
Some images I manage to show and some I don't.
The URL to image is valid, when I type in it in browser it works.
OK emulator maybe every 10-11th picture is not shown. But on phone is like every 5th.
I tried 3 different ways, 2 ways of setting drawable and 1 of bitmap and its the same.
I don't get any exception, The program manages to get the correct URL but it doesn't manage to show every image.
I checked the images size, and they are all similar.
Here is a code, you can skip getImageUrl() and getFirstImageNumber() because those are functions which provide url from HTML page.
http://codeviewer.org/view/code:16d8
With a problem ofc.
I'm trying to show images in ImageView that I download from internet.
Some images I manage to show and some I don't.
The URL to image is valid, when I type in it in browser it works.
OK emulator maybe every 10-11th picture is not shown. But on phone is like every 5th.
I tried 3 different ways, 2 ways of setting drawable and 1 of bitmap and its the same.
I don't get any exception, The program manages to get the correct URL but it doesn't manage to show every image.
I checked the images size, and they are all similar.
Here is a code, you can skip getImageUrl() and getFirstImageNumber() because those are functions which provide url from HTML page.
http://codeviewer.org/view/code:16d8