且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

DownloadManager不在下载文件夹中存储下载的文件

更新时间:2022-11-05 17:59:38

要查看下载的文件,您必须在手机中安装文件管理器"应用程序.查看下载文件的步骤:

To see the downloaded files, you must have File Manager app installed in your phone. Steps to view downloaded files:

  1. 打开文件管理器应用程序.
  2. 转到存储-> sdcard
  3. 转到Android->数据->您的包名称",例如com.xyx.abc
  4. 这是您的所有下载内容.

路径为:storage/sdcard/Android/data/您的包"

Path is: storage/sdcard/Android/data/"your package"

使用以下方法将文件保存在下载文件夹中

Use below methos to save files in Download folder

.setDestinationInExternalFilesDir(this, dir, "abc.png");