开发者

android how to download images from server quickly

开发者 https://www.devze.com 2023-03-14 06:38 出处:网络
I have an application, where it downloads a no of images (no of images are not fixed) from server(intern开发者_JAVA技巧et).

I have an application, where it downloads a no of images (no of images are not fixed) from server(intern开发者_JAVA技巧et). at first i tried only one image it took 2min to display. Now i am trying to load 5 images so it takes 10 to 15 mins to display, which shouldnt be like this. What can I do so that it take a small duration of time as a normal application takes.

Thank you


Use AsyncTask - It will allow you to display images as and when they are downloaded. No need to wait for displaying till all the images are there !


You can use Lazy List that will cache the images in Cache memory and let you to load images very fast.

Check this Link Lazy List sample.......

0

精彩评论

暂无评论...
验证码 换一张
取 消