- title
- the title that would appear for this file in Downloads App.
- description
- the description that would appear for this file in Downloads App.
- isMediaScannerScannable
- true if the file is to be scanned by MediaScanner. Files scanned by MediaScanner appear in the applications used to view media (for example, Gallery app).
- mimeType
- mimetype of the file.
- path
- absolute pathname to the file. The file should be world-readable, so that it can be managed by the Downloads App and any other app that is used to read it (for example, Gallery app to display the file, if the file contents represent a video/image).
- length
- length of the downloaded file
- showNotification
- true if a notification is to be sent, false otherwise
Documentation for this section has not yet been entered.
Adds a file to the downloads database system, so it could appear in Downloads App (and thus become eligible for management by the Downloads App).
It is helpful to make the file scannable by MediaScanner by setting the param isMediaScannerScannable to true. It makes the file visible in media managing applications such as Gallery App, which could be a useful purpose of using this API.