Introduction to IsolatedStorage

Source: Internet
Author: User

Recently transferred to WP7 development, windows phone 7 uses IsolatedStorage to store local data. As a developer, you sometimes need to view or higher program local data.

Tool 1:

Windows Phone 7 Isolated Storage Explorer

Http://wp7explorer.codeplex.com/

The following is a detailed description of how to use the above website. However, there are two shortcomings:

1. You cannot expand the folder to view the content under the folder (WP7 Isolated Storage Explorer v1.0 Beta version)

2. Additional configurations are required for debugging on the real machine. Otherwise, an exception is thrown. Port 2052 is not listened to, and mess.

 

Tool 2:

ISETool

IsolatedStorage tool provided by wp7 sdk

Installation address: C: \ Program Files \ Microsoft SDKs \ Windows Phone \ v7.1 \ Tools \ isolatedstoragepolicertool

We recommend that you add this Path to the environment variable Path. The following Commands

The following are the commands I used during debugging:

Simulator

ISETool.exe dir xd 23833d6c-1446-4097-a7f6-358c3294d9a3 view independent buckets

ISETool.exe dir: \ Folder \ xd 23833d6c-1446-4097-a7f6-358c3294d9a3 view files in the directory

ISETool.exe ts xd 23833d6c-1446-4097-a7f6-358c3294d9a3 "C: \ Temp" Copy to computer C: \ Temp Directory

ISETool.exe rs xd 23833d6c-1446-4097-a7f6-358c3294d9a3 "C: \ Temp \ IsolatedStore" upload the C: \ Temp directory to the simulator

 

Real Machine

ISETool.exe dir de 23833d6c-1446-4097-a7f6-358c3294d9a3 view independent buckets

ISETool.exe dir: \ Folder \ de 23833d6c-1446-4097-a7f6-358c3294d9a3 view files in the directory

ISETool.exe ts de 23833d6c-1446-4097-a7f6-358c3294d9a3 "C: \ Temp" Copy to computer C: \ Temp Directory

ISETool.exe rs de 23833d6c-1446-4097-a7f6-358c3294d9a3 "C: \ Temp \ IsolatedStore" upload to the device

 

Note:

Dir specifies the path in the independent storage

Xd specifies that a simulator is connected.

De specifies to connect to a real machine

Ts from wp7 device to Pc

Rs uploads wp7 devices from pc

The GUID in the command is the product ID of the application.

Open WMAppManifest. xml in the Deployment/App path.

<Deployment xmlns = "http://schemas.microsoft.com/windowsphone/2009/deployment" AppPlatformVersion = "7.1">
<App xmlns = "" ProductID = "{23833d6c-1446-4097-a7f6-358c3294d9a3 }"

You only need to change the ProductID when debugging other programs (each application has its own independent storage ).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.