简体   繁体   中英

Storing Images in android from web services

I am able to handle images and text from web URL's in android using AsyncTask, but have a separate question in mind.

Which approach is best suited for storing pictures for one time loading?

IE: Either in an SD Card or in SQLite DB.

If you want to store images for just one time loading, you don't need to store it in Sdcard. You better use a library like Glide or Picasso . It does all the hard work of caching and managing memory for you. It has very simple API.

    Glide.with(this).load("http://goo.gl/gEgYUd").into(imageView);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM