Support to download Extension files?

Hi All,

Any idea how long this would take to implement? What would the priority be for this?

http://android-developers.blogspot.com/2012/03/android-apps-break-50mb-barrier.html

Any other workaround until then?

[import]uid: 76515 topic_id: 22881 reply_id: 322881[/import]

I will pass this onto the team.

A workaround for now is to download big resource files upon first launch of your app. [import]uid: 84637 topic_id: 22881 reply_id: 91453[/import]

I’ll add this to our to-do list as a high priority item. No ETA yet since we need to finish our current commitment before making new ones… but that said, I understand the importance of this feature and it would be nice to FINALLY go beyond the 50 MB barrier. [import]uid: 32256 topic_id: 22881 reply_id: 91559[/import]

@Joshua Quick
Yes, this is very important feature. Please, implement it ASAP.
And thanks in advance :slight_smile: [import]uid: 9058 topic_id: 22881 reply_id: 91679[/import]

Any recommedations on how to do this. It seems that corona only lets us download the files in the documents directory or temporary directory. I believe that other apps stores the resource files in the SD card on android. no idea how to do it on iOS though.

also, it seems that we can only download each file individually, is this true? or can we download a package in zip then extract?

any response will help greatly!! [import]uid: 76515 topic_id: 22881 reply_id: 91834[/import]

Like I said earlier, we have to finish our current Android commitments before committing to new things such as this. We’re currently implementing the features promised in Carlos’ “State of the Corona Address” blog post, which can be seen here…

http://blog.anscamobile.com/2011/12/state-of-the-corona-address/

I did write this up as a feature request and flagged it as high priority. So it will happen, but don’t hold your breath. I doubt we’ll be implementing extension file support this month.

That said, if you have your own web server, you can work-around the 50 MB issue by doing a network.download() for the rest of your Android content. That is commonly done by other Corona developers. Especially for apps that include large video files. [import]uid: 32256 topic_id: 22881 reply_id: 92012[/import]

what about recreating directories?

I basically have a directory filled with images and mp3 files. I want to be able to download the entire directory. is this possible? [import]uid: 76515 topic_id: 22881 reply_id: 92081[/import]

Corona does not provide an API for creating directories. [import]uid: 32256 topic_id: 22881 reply_id: 92087[/import]

hmm ic.

so in our app, we have a lot of images stored in the imagesUI directory. there are subfolders in that as well. so far our app is about 100mb. in order to bring it below 50mb, We were thinking of separately downloading all the images from that folder upon first launch of the app.

the problem is that we would need to have all the images exist only in imagesUI with NO subdirectories. Then we would need to modify all our code pointing to the sub directories instead to point to our imagesUI directory.

is this the only way? Is this what everyone else does? this seems extremely messy. [import]uid: 76515 topic_id: 22881 reply_id: 92220[/import]

@Joshua Quick
That said, if you have your own web server, you can work-around the 50 MB issue by doing a network.download() for the rest of your Android content.
OK, we have web server, but we have about 5000 image files we want to be downloaded? Is it proper solution in this case?
Thanks [import]uid: 9058 topic_id: 22881 reply_id: 92721[/import]

Please expand on this Joshua, this is the exact same problem that I have. [import]uid: 76515 topic_id: 22881 reply_id: 92798[/import]

If the files are meant to be permanent and are required for your app, then you should download them to the Documents directory. If they are temporary, then download them to the Temporary or Caches directory, at which point the mobile device might decide to delete these directories if it is running out of storage space. It’s really that simple… other than the fact that you would have to display a download screen until all content has been retrieved.

Regarding downloading 5000 files, you wouldn’t want to do a network.download() 5000 times, one for each file. That would be horribly inefficient. You would want to download it in bulk, such as a zip file (or even multiple zip files). Corona does not have a zip support, so you would have to have a zip utility too to decompress them. Yeah, this case is a much tougher issue, but I know other Corona developers with large apps have worked-around it. So it’s certainly possible. Just requires work. [import]uid: 32256 topic_id: 22881 reply_id: 92859[/import]

“Corona does not have a zip support, so you would have to have a zip utility too to decompress them.”

Do you mean that we would use corona to call another 3rd party zip utility to unpack all the files? [import]uid: 76515 topic_id: 22881 reply_id: 92870[/import]

+1 to Ansca making a API for Corona Zip Support… :slight_smile: [import]uid: 88147 topic_id: 22881 reply_id: 92884[/import]

I, too, would like to know the best way to unzip files using Corona. Maybe a tutorial showing an example with a 3rd party zip utility? [import]uid: 71024 topic_id: 22881 reply_id: 92890[/import]

@Joshua Quick
Corona does not have a zip support, so you would have to have a zip utility too to decompress them…Just requires work.
Thanks for reply. We don’t afraid of work :slight_smile: We need just more explanation on how to unpack zip using pure Lua (or how to call “zip utility” from Corona), if you know.
[import]uid: 9058 topic_id: 22881 reply_id: 93014[/import]

Guys try this (for now), tar extraction for corona : http://developer.anscamobile.com/forum/2012/03/13/tar-module-extract-tar-files-corona [import]uid: 84637 topic_id: 22881 reply_id: 93035[/import]

@Danny
Thank you, Danny! [import]uid: 9058 topic_id: 22881 reply_id: 93069[/import]

@andriy : no problem :slight_smile:

Just updated it again, so please download the new version (same link as before)
It offers slightly faster extraction and also an onComplete handler [import]uid: 84637 topic_id: 22881 reply_id: 93071[/import]

Hey Danny, that looks awesome - saw the email earlier but as it was 12 odd hours after it was sent (been out this morning) I didn’t want to “bump” it.

Super exciting stuff :smiley: [import]uid: 52491 topic_id: 22881 reply_id: 93210[/import]