what is the best practice store images in android in SD card or in SQL lite DB?
I want to store sample images. what is the best efficient way weather to store on SD card or 开发者_Go百科in DB?
if the images are not big(2-3 KB) and the collection of them is not supposed to be expanded then you can save them to db. But it would be harder to write them, read them. On the other hand the user won't be able to do anything with them.
Otherwise, if you want to let user to expand the image collection or the images are rather big you should store them to sd card.
Anyway, you should be aware of space lackness and treat those cases appropriately.
精彩评论