我已经创建了一个应用程序,从一个私人服务器下载一个pdf文件,并将其存储在“共享/传输”目录中。重点是: pdf文件是完全隐藏的,我看不到我下载的pdf文件,adobe阅读器应用程序也无法识别它。
发布于 2015-04-21 21:19:23
我刚刚用默认的启动器打开了下载的文件,试试这个
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.我想这将符合你的要求。
https://stackoverflow.com/questions/25026662
复制相似问题