List the files that are stored in the download folder on an Android device

▼魔方 西西 提交于 2019-12-11 04:25:42

问题


How do you retrieve the list of files that are stored in the download folder on android phone.

I have an cordova based app that contains a button. When it is press, I would like to show the user a list a files in their download folder and let them select one..

I have the "cordova-plugin-file" installed and I tried accessing the information from the following folders"

var localURLs    = [
cordova.file.dataDirectory,
cordova.file.documentsDirectory,
cordova.file.externalApplicationStorageDirectory,
cordova.file.externalCacheDirectory,
cordova.file.externalRootDirectory,
cordova.file.externalDataDirectory,
cordova.file.sharedDirectory,
cordova.file.syncedDataDirectory

];

and the code from How to get documents in an android directory that PhoneGap will see

However, none of the folders return the files stored in the download folder on the device.

Is there another method to access this information..

Thanks

来源:https://stackoverflow.com/questions/40557762/list-the-files-that-are-stored-in-the-download-folder-on-an-android-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!