Best way to store application images taken via camera

Posted by Dave on Stack Overflow See other posts from Stack Overflow or by Dave
Published on 2010-05-05T15:44:17Z Indexed on 2010/05/05 15:48 UTC
Read the original article Hit count: 271

Filed under:
|
|
|

Hi all,

I'm just looking for some insight into what would be the best way for me to store images as part of my app.

I have an activity that represents a 'Job' which has a couple of edittext's and underneath was planning on using the Gallery component to show images relevant to this job.

The job data is stored in a database (on the sdcard) so was also thinking of creating a table to store 'JobImages' and having each image stored as a byte array.

But I'm not sure if it would be better to store the images directly on sdcard under a folder structure specific to my application and the job. E.g. using the job ID number as a folder name.

Depending on which method I use will greatly determine the code that goes into an 'adapter' that allows me to bind to the gallery component so before I begin I was wondering if anyone has had the same design problem and what option they chose.

Thanks,

Dave

© Stack Overflow or respective owner

Related posts about android

Related posts about gallery