在android中存储大量图像

use*_*070 12 java database android image

我正处于为Android手机制作数据库应用程序的计划阶段.我的一个要求是我能够为用户提供离线访问.我想知道什么是最有效的存储大量图像的方式(大约四百几千).

哦,图像已经过预压缩/优化,适合移动观看.apk for the market的50mb限制不会成为问题.

Tof*_*mad 3

你必须开发简单的逻辑。假设你有连接,然后下载所有图像。现在你有两种方式在没有连接时访问这些图像-----

Store all images in data base as blob(But it not feasible to store huge amount 
of data to database)
Run Code Online (Sandbox Code Playgroud)

第二..

Store all images in sdcard(by making a folder in it) and now store link of these
images in data base Table.Suppose you donot have connection then first fetch 
image path from DB Table  then fetch file from sdcard and display
Run Code Online (Sandbox Code Playgroud)

  • 实现第二种方式。并且不会影响apk大小 (2认同)