[RESOLVED] Should I include images in my build

Hi,

I am currently writing an app for the NZ plant network,  it is relatively simple app where users can look up information about plants in NZ.  The app is very image heavy and will include over 4000 images, even though these images are small in size, the share number of them adds up to over 200MB.  These images will occasionally be updated during the life of the app and can be pulled dynamically from their server.

My question is - should I include these images in the final build or distribute a ‘bare bones’ app that pulls down the images when it first loads.  I would prefer to include the images in the final build (have the app store or market deal with the large download) and then users would only need to pull down updates (which wont occur that often) but I am not sure how this would work exactly.  If I include the images in the final build then they would be located in the ‘resource directory’ and therefore un-editable (I think), if I download newer images (which will replace the old) then I the app will get larger and larger. 

Any advice or suggestions greatly appreciated.

Craig

As you said, resources are not editable. So if you must manipulate files then only dynamic downloading is a way.

Hi Craig,

You might consider copying (well, moving actually) the images from the Resource to Documents directory using LFS (Lua File System). Then, when you download updated images, they should overwrite those in the Documents folder and you’ll have the most current version. This process is described in some detail here:

http://docs.coronalabs.com/guide/data/readWriteFiles/index.html#directories

Best regards,

Brent

Thanks Brent,   makes sense…  How do I mark an entry as “answered”?

I just marked it for you Craig. Best of luck with your project! Any other questions, don’t hesitate to ask.

Brent

As you said, resources are not editable. So if you must manipulate files then only dynamic downloading is a way.

Hi Craig,

You might consider copying (well, moving actually) the images from the Resource to Documents directory using LFS (Lua File System). Then, when you download updated images, they should overwrite those in the Documents folder and you’ll have the most current version. This process is described in some detail here:

http://docs.coronalabs.com/guide/data/readWriteFiles/index.html#directories

Best regards,

Brent

Thanks Brent,   makes sense…  How do I mark an entry as “answered”?

I just marked it for you Craig. Best of luck with your project! Any other questions, don’t hesitate to ask.

Brent