Windows Phone 8 新增功能:对SD卡的访问
来源:互联网 发布:在线aes算法 编辑:程序博客网 时间:2024/04/25 04:23
Windows Phone 8 新增加了对 SD 卡的支持,开发者可以直接访问SD卡非加密的内容,但无法执行Write操作
而且用户可以将已通过审核的应用拷贝到SD上进行安装,只是在安装的过程中需要用户手机联网到marketplace上进行验证,如果是合法程序则可以直接安装使用。
代码中对SD卡操作需要添加 ID_CAP_REMOVABLE_STORAGE 能力,
使用代码片段,引用自官方Route mapper sample例子,完整例子请移步到:点击打开链接
- // Process a route from the SD card.
- private async Task ProcessSDGPXFile(string _sdFilePath)
- {
- // Connect to the current SD card.
- ExternalStorageDevice sdCard = (await ExternalStorage.GetExternalStorageDevicesAsync()).FirstOrDefault();
- // If the SD card is present, get the route from the SD card.
- if (sdCard != null)
- {
- try
- {
- // Get the route (.GPX file) from the SD card.
- ExternalStorageFile file = await sdCard.GetFileAsync(_sdFilePath);
- // Create a stream for the route.
- Stream s = await file.OpenForReadAsync();
- // Read the route data.
- ReadGPXFile(s);
- }
- catch (FileNotFoundException)
- {
- // The route is not present on the SD card.
- MessageBox.Show("That route is missing on your SD card.");
- }
- }
- else
- {
- // No SD card is present.
- MessageBox.Show("The SD card is mssing. Insert an SD card that has a Routes folder containing at least one .GPX file and try again.");
- }
- }
http://blog.csdn.net/flashtao613/article/details/8135867
- Windows Phone 8 新增功能:对SD卡的访问
- Windows Phone 8 新增功能:对SD卡的访问
- Windows Phone 8 新增功能: 支持锁屏的应用
- Windows Phone 8 新增功能:解锁开发者手机和新的调试功能
- Windows Phone 8 新增功能:解锁开发者手机和新的调试功能
- Windows Phone 8 新增功能:解锁开发者手机和新的调试功能
- Windows Phone 8 新增功能:Windows.Storage新的文件操作类型
- Windows Phone 8 新增功能:Windows.Storage新的文件操作类型
- 从 Windows Phone 8 上的 SD 卡读取
- Windows Phone 8 新增功能:TTS文本朗读功能 和 语音识别 API
- Windows Phone 8 新增功能:TTS文本朗读功能 和 语音识别 API
- Windows Phone 8 新增功能:支持第三方应用创建自定义联系人Custom Contact Store。
- Windows Phone 8 新增功能:支持第三方应用创建自定义联系人Custom Contact Store。
- Windows Phone文件/SD卡操作 (1)
- Windows Phone文件/SD卡操作 (2)
- Windows Phone文件/SD卡操作 (3)
- windows phone 8 新增功能:从一个应用程序启动另一个程序(file association 和 Protocol association两种方式)
- windows phone 8 新增功能:从一个应用程序启动另一个程序(file association 和 Protocol association两种方式)
- html中的特殊符号
- 设计模式笔记---策略模式(2013.3.25)
- Bubble(4)
- ssh 反向代理举例
- Oracle 资源管理(resource manager)
- Windows Phone 8 新增功能:对SD卡的访问
- 原來 gdb 可以用來展開 C/C++ 的 macro
- 浅析ConcurrentHashMap .
- 64位系统安装ODBC驱动的方法[转]
- UVA 10656 - Maximum Sum (II)
- ADROID 2.1 架构解析 6 闹钟
- March 25, AD 2013 Day 1
- 4种必须知道的Android屏幕自适应解决方案
- 【流式计算】Twitter Storm: Transactional Topolgoy简介