Downloading Files to a Mobile Device
This topic discusses two different techniques for downloading files (such as PDF, Video, Audio, Excel, Image files) to a mobile device so that the files are stored in the filesystem on the device and can be viewer later on (presumably when the device no longer has an internet connection) using the Native app associated with the particular file type.
The second technique uses features of the List control to automatically download files when the List is populated. The data with which the List is populated should contain a field that has the URL for file you want to download. For example:
To use this technique:
Define a List control with a Detail View
In the List builder, on the Fields tab, set the control type of the URL to LinkedFile
In the List Builder, on the DetailView tab click on the smart field for the Media files (photos, videos, audio recordings, other) settings property.
In the dialog that is displayed, check the Automatically download media a other linked files when populating this List property. This will cause all remote files (referenced by their URL, and identified by List columns that have a column type of Image, Video, Audio or LinkedFile) to be downloaded and saved in the filesystem on the mobile device when the List is populated.
You may also want to check the Automatically delete un-referenced files property. This will delete any previously downloaded files when the List is re-populated with new data and records in the List data no longer reference any previously downloaded files.
PhoneGap Applications Only