Windows phone 8 从共享、传输和后台传输打开文件
我创建了一个应用程序,可以从私人服务器下载pdf文件并将其存储在“共享/传输”目录中。重点是:pdf文件完全隐藏,我看不到我下载的pdf,adobe reader应用程序也无法识别它我刚刚用默认启动器打开了下载的文件,请尝试一下Windows phone 8 从共享、传输和后台传输打开文件,windows-phone-8,Windows Phone 8,我创建了一个应用程序,可以从私人服务器下载pdf文件并将其存储在“共享/传输”目录中。重点是:pdf文件完全隐藏,我看不到我下载的pdf,adobe reader应用程序也无法识别它我刚刚用默认启动器打开了下载的文件,请尝试一下 StorageFolder folder = await ApplicationData.Current.LocalFolder.GetFolderAsync("Shared"); //I'm accessing the shared folder from Lo
StorageFolder folder = await ApplicationData.Current.LocalFolder.GetFolderAsync("Shared"); //I'm accessing the shared folder from LocalFolder
StorageFolder subfolder = await folder.GetFolderAsync("Transfers"); //Here i'm accessing transfers folder from shared folder
StorageFile bqfile = await subfolder.GetFileAsync("Your filname"); //here accesing the file from transfers folder.
await Windows.System.Launcher.LaunchFileAsync(bqfile); // launching the file with default launcher.
我认为这将符合您的要求。您确定文件已下载吗?你所说的完全隐藏是什么意思?确切的问题是什么?是的,我确定该文件已完全下载,而且我没有任何错误。问题是我无法访问该文件,后台传输查询下载位置'/shared/transfers'“在应用程序中,不是隔离存储,因此我没有任何访问该文件的权限,但我需要打开它。您可以使用Windows Phone Toolkit查看该文件吗?”?事实上没有你知道怎么做吗?