是否可以在Windows Phone 8中将文件从本地移动到SD卡? [英] is it possible to move file from local to sdcard?in Windows phone 8

查看:58
本文介绍了是否可以在Windows Phone 8中将文件从本地移动到SD卡?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个应用程序,我试图将mp 4文件从本地文件夹移动到SD卡。我已经在Windows Phone 8.1上完成了...现在我正在开发它在Windows Phone 8上......但是它给出了错误..



我收到了错误在下面这行。

I am developing an application where i m trying to move mp 4 file from local Folder to Sd card. I have done it on windows phone 8.1...Now i am developing it on windows phone 8...But it is giving error..

I got the Error on this below line.

StorageFolder sdCard = (await KnownFolders.RemovableDevices.GetFoldersAsync()).FirstOrDefault();



它显示错误..


And it's showing Error..

An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in System.Windows.ni.dll



当我添加Watch然后检查Exception e Argument并显示...


And When I Add Watch then it check Exception e Argument and it showing...

System.NotImplementedException: The method or operation is not implemented.
at Windows.Storage.KnownFolders.get_RemovableDevices()

推荐答案

您的问题有点令人困惑,因为主题是指Windows电话8,但你的问题是指Windows 8.1和Windows 8.在提出有关这些事情的问题时要小心,因为市场上有这两种东西,而且它们是非常不同的野兽。



我将假设您的意思是Windows Phone 8和Windows Phone 8.1。不幸的是,答案很简单,错误信息实际上是告诉你的。在Windows Phone 8.1之前,未添加对SD卡的支持。这就是为什么当你尝试在Windows Phone 8上运行它时会得到NotImplementedException ...那个版本上没有实现SD卡功能。
Your question is a bit confusing because the subject refers to Windows Phone 8 but your question refers to Windows 8.1 and Windows 8. Please be cautious when asking questions about these things because there is both in the marketplace and they are very different beasts.

I'm going to assume that you mean Windows Phone 8 & Windows Phone 8.1. Unfortunately the answer is very simple and the error message is actually telling you this. Support for SD cards wasn't added until Windows Phone 8.1. That is why you get a NotImplementedException when you try to run it on Windows Phone 8... the SD card functions weren't implemented on that version.


这篇关于是否可以在Windows Phone 8中将文件从本地移动到SD卡?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆