我已经看到许多有关此主题的问题。所有的答案都说不可能,所有的问题都只能像这样回答。
这是一个Programmatically create a photo album in Windows Phone 8
但是在安装了最新的WhatsApp更新后,它正在我的手机相册中创建一个文件夹。搜索互联网后,我得到了以下URL:http://thegeekybeng.com/2013/12/18/whatsapp-for-windows-phone-get-a-much-needed-update/
.. What's more! Now it's easier to search for the videos and photos you Saved from whatsapp as a new folder simply named “Whatsapp” will be Created in the photo album for you to store all the videos and photos Saved from Whatsapp!...
这怎么可能?
最佳答案
“这怎么可能。”仅当您有权访问不公开的API/其他方式时,才有可能,例如,查看诺基亚的this新闻报道,其中指出
The developers were working with Nokia to produce a version that is properly optimised for the latest Windows Phone platform experience.
这意味着WhatsApp开发人员可以访问一些我们“不值得”开发人员无法访问的内部功能。
这是我能想到的唯一解释。那么,有可能吗?是的,但仅适用于精英人士。
编辑:
在WP8.1中,您可以执行以下操作:
IReadOnlyList<StorageFolder> storageFolderList = await KnownFolders.PicturesLibrary.GetFoldersAsync();
if (storageFolderList.Where(x => x.Name == "FolderName").Count() == 0)
{
StorageFolder folderCreationResult = await KnownFolders.PicturesLibrary.CreateFolderAsync("FolderName", CreationCollisionOption.ReplaceExisting);
var messageDialog = new MessageDialog("FolderName has been created", "Folder Created");
await messageDialog.ShowAsync();
}
else
{
var messageDialog = new MessageDialog("FolderName already exists.", "Folder Exists");
await messageDialog.ShowAsync();
}
关于windows-phone-8 - 如何以编程方式在Windows Phone 8中创建相册文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20696400/