1
我已经从我自己的服务器上以字节数组的形式下载数据,并将其保存在手机的共享下载文件夹中。但是这个文件没有显示在手机的内置下载应用程序中。如何在内部显示文件在Android下载应用程序?
如何显示文件内建下载应用程序?
我使用它下面的代码:
Java.IO.File storageDir = global::Android.OS.Environment.GetExternalStoragePublicDirectory (global::Android.OS.Environment.DirectoryDownloads);
Java.IO.File storageFile = new Java.IO.File (storageDir, filename);
System.IO.File.WriteAllBytes (storageFile.ToString(), filebyte);
如果可能的话我该怎么办呢?
注意:filename
是文件的名称,filebyte
是数据的字节数组。
我没有uri。而不是它,我有一个已经从我自己的服务器获取的文件内容。如何构建DownloadManager.Request? – user3249859