10-09-2012 10:34 AM
I have an app with many thousands of support files, each an HTML file that is loaded in the various screens of the application. There are so many support files that the RDK.SF file (a file created during the app signing process and that lists all files that are part of an application) becomes too large and causes the signing process to fail (I've filed a bug on this, and I'm told that this is an issue RIM is aware of).
So, instead of packaging all of my support files inside the app, I'd like the app to download the files onto the PlayBook into the root directory of my app the first time the app runs.
In WebWorks/HTML5, how do I store a downloaded file to the PlayBook? I already know how to get the contents of a remote file, but how can I save that content into a new HTML (or whatever) file and store it in the root directory of the app?
10-09-2012 11:46 AM
You could use the UploadDownload extension to physically download the file to the device (you specify the save path).
You can check-out the extension over on our GitHub repo https://github.com/blackberry/WebWorks-Community-A
10-09-2012 06:41 PM
You should actually be able to use the FileTransfer API. While it doesnt show that the PB is supported. It actually should be. I think the documentation is a little off in that respect. As just below the compadiblity chart, it metnions playbook not needing permissions. Anyway: check out https://developer.blackberry.com/html5/apis/blackb