简体   繁体   中英

Create image gallery using image paths stored insqlite db

I am creating an app which i want to use to report field incidences at work.

Each incident may have one or more photos.

At this stage, i want to store the images locally on sd card and store their paths in the sqlite db.

So far i have figured out the db design and how to capture and save images on sd card and store their paths in the db.

What is challenging me now is how to dispay the images back?

I want a set up that dispalys the incident description and the associated image(s).

I have created xml file with textview to display the incident description and a gallery to dispaly images related to that incident.

My question is how to use image paths to create a gallery...or a better suggestion...

I have written code to retrieve incidences and related images ...

Ronald

Use a Grid View or PageViewer to display a gallery. The one thing you have to do while using this is Memory management.

因为当每个应用程序在堆分配方面都有一些限制时。...当您加载的图像超过分配的堆空间时,它将抛出内存不足异常。

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