开发者

Deploying Files to IsolatedStorage in Windows Phone 7

Hi everyone

I would like开发者_运维问答 to know if it's possible to deploy my app assets directly to Isolated Storage once the app get deployed.

I'm currently extracting them from code but this make the app's first launch too slow and it will be declined once it's submitted to the marketplace.

I'm wondering if there is a nice trick to make the process faster

Thanks


There's no way to automatically deploy to IsolatedStorage on app installation.

There are a few things you can do to try and avoid a delay on first start up though:

  • Refer to files directly in the XAP where possible.
  • Split the assets into multiple dlls so that only those needed are loaded into memory.
  • Load content to IS in the background and prioritize this so that the resources are loaded as needed.

You should not need to load image or video files into IS just to view them.
You should only need to copy the XML files if they're going to be updated. If you just want to read some data this doesn't need to be done. Also, if the XML files just hold initial data/state this could be loaded from the assembly directed and only saved to IS when first persisted.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜