I am working on an app that keeps track of who you lended your book to, and I want to add an image feature, so that users can see thumbnails of each book in the list. I can get images via the google books api, but then I have two options. One is downloading the image and storing it on the users device, which means more storage space, but then I don't need to download the images every time the user enters the application. Second option is the opposite, not storing on the device so less storage space but more internet usage. What should I do?

有帮助吗?

解决方案

I'd recommend using a good 3rd party image loading framework, for example Picasso. It implements all the best practices of image loading on Android, including asynchronous loading and caching.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top