I am developing Windows Phone 8.1. I can use KnownFolders.RemovableDevices
to access SD card & further can retrieve files & folders. Some WP devices don't have SD cards, then how can I access phone memory to retrieve files?
Windows 8 has CreateFileQueryWithOptions
and on MSDN Windows.Storage.Search namespace says that it supports WP8.1 but it's throwing NotImplementedException
. So how can I search files in WP8.1 devices?
On Windows Phone, you can have access only to KnownFolders (apart from IsolatedStorage and so on) and only after specifing the Capabilities and FileExtensions. So if you want to retrive Music files, you will use KnownFolders.MusicLibrary
.
Note that KnownFolders (apart from RemovableStorage) are virtual location - it can exist both on Phone and SD card.
If you want to search for files, there is an option to use CommonFileQuery.OrderByName
, but I've encountered some problems posted here .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.