简体   繁体   English

WP7将其他内容下载到应用程序(声音库)

[英]WP7 Download addition content to app (sound lib)

Is there any good way to download additional content for my app in wp7? 有什么好的方法可以在wp7中为我的应用下载其他内容? Now my best idea is FTP. 现在,我最好的主意是FTP。

I would just host the files on a web server and then download it on a background thread and write the files to isolated storage. 我只是将文件托管在Web服务器上,然后将其下载到后台线程中,然后将文件写入隔离的存储中。 That is going to be easier than FTP as I don't know if there are any free FTP libraries for Windows Phone right now. 这将比FTP容易,因为我不知道现在Windows Phone是否有免费的FTP库。

Here is an example of downloading files and saving them to isolated storage . 这是下载文件并将其保存到独立存储中示例 It does a bit more than you might need but it should be a good jumping off point. 它做的事情比您可能需要的要多,但这应该是一个很好的起点。 Also don't use the performance progress bar mentioned in that article but rather the Progress Indicator . 也不要使用该文章中提到的性能进度条,而是使用进度指示器

If the files are highly compressible I would also consider zipping them and then unzipping them on the phone using something like Silverlight SharpZipLib 如果文件是高度可压缩的,我也可以考虑将其压缩,然后使用Silverlight SharpZipLib之类的东西在电话上解压缩

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM