且构网

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

如果应用程序安装在SD卡上,BackgroundDownloader无法将图像保存为SD [WinRT - Windows Phone 8.1]

更新时间:2023-09-28 09:06:40

您好Strucign,

Hi Strucign,

欢迎光临开发通用Windows应用程序
论坛!

在Windows Phone 8.0中,它支持对SD卡的只读访问,但在Windows Phone 8.1中,它提供对SD卡的读/写访问权限。所以我们可以把文件写入SD卡,因为我没有你的代码,所以先试着检查一下这篇文章:

访问Windows Phone应用程序中的SD卡
以确保您已注册与您要在Manifest中的声明部分中读取和写入的媒体类型相关联的文件扩展名。此外,我建议你利用

FutureAccessList
。它允许您重用用户以前授予您访问权限的文件和文件夹。有关详细信息,请参阅:
$
http://***.com/questions/17502199/c-sharp-windows-store-backgrounddownloader-to-removable-storage

In Windows Phone 8.0 it supports read-only access to the SD card, but in the Windows Phone 8.1 it provides the read/write access to the SD card. So we can write file to the SD card, since I do not have your code, first try to check this article: Access the SD card in Windows Phone apps to make sure that you have registered the file extensions associated with the type of media that you want to read and write in Declaration part in Manifest. Besides, I will recommend you take advantage of FutureAccessList. It allows you to reuse files and folders that the user has previously granted you access to. For more information, please try to refer to:
http://***.com/questions/17502199/c-sharp-windows-store-backgrounddownloader-to-removable-storage .

如果更好的话你可以尝试在这里发布一个简单的转载项目。



***的问候,

Amy Peng

It will be better if you can try to post a simple reproduced project in here.

Best Regards,
Amy Peng