存储android的大量图像 [英] Storing large amount of images in android

查看:126
本文介绍了存储android的大量图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在做Android手机的数据库应用程序的规划阶段。我的一个要求是,我能够能够为用户提供离线访问。我想知道什么是存储(约四百-几千个)。

I am in the planning stage of making a database application for android phones. One of my requirements is that I be able able to provide offline access for users. I am wondering what would be the most efficient way of storing a large amount of images (around four hundred-several thousand).

呵呵,画面已经pre-COM pressed /优化手机查看。对APK的50MB限制市场将不会是一个问题。

Oh, the images have been pre-compressed/optimized for mobile viewing. The 50mb limit on apk for the market won't be a issue.

推荐答案

您必须制定有连接,然后下载所有images.Now你有两种方式,而不必connection--来访问这些图片简单logic.Suppose ---

You have to develop simple logic.Suppose you have connection then download all images.Now you have two way to access these images while you do not have connection-----

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

二..

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

这篇关于存储android的大量图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆