Using the Windows Phone Isolated Storage Explorer tool
published on: 8/12/2011 | Views: N/A | Tags: IsoStore
by WindowsPhoneGeek
In this post I am going to talk about Windows Phone 7 Isolated Storage Explorer. This is a nice tool that helps developers explore the Windows Phone isolated storage.
Windows Phone 7 Isolated Storage Explorer is a free Open Source project published on Codeplex: http://wp7explorer.codeplex.com/
It can work both as a desktop application for testers or integrated in Visual Studio for developers. You can read the full description here.
NOTE: Although the project is considered to be in Beta we tested the product in details and as a conclusion it turns out to be stable enough and also quite helpful!
Why use it?
Here are some good reasons of why using this tool:
- it is easy to install and use
- you can check the state of the Isolated Storage of your Windows Phone apps
- you can copy files from the Isolated Storage to your PC and vice versa
How to use WP7 Isolated Storage Explorer?
Step1: Download the installation .msi package from: http://wp7explorer.codeplex.com/
Step2: Install the downloaded "WP7 Isolated Storage Explorer v1.0 Beta.msi"
Step3: Create a new Windows Phone 7.1 Project and add reference to IsolatedStorageExplorer.dll.
C:\Program Files (x86)\WP7 Isolated Storage Explorer\Library\IsolatedStorageExplorer.dll
Step4: Call "IsolatedStorageExplorer.Explorer.Start("<hostname>")" in the Launching event in App.xaml.cs.
Note: <hostname> is the host name or IP of the of the testing or development machine.
example:
private void Application_Launching(object sender, LaunchingEventArgs e)
{
IsolatedStorageExplorer.Explorer.Start("localhost");
}
Step5: Add the call to "IsolatedStorageExplorer.Explorer.RestoreFromTombstone()" in the handler for the Activated event in App.xaml.cs:
private void Application_Activated(object sender, ActivatedEventArgs e)
{
IsolatedStorageExplorer.Explorer.RestoreFromTombstone();
}
According to the official documentation: The WP7 Isolated Storage Explorer supports connections from the emulator or actual devices. For applications running on devices a data connection must be enabled (WiFi or the mobile data connection).
It is not recommended to use the WP7 Isolated Storage Explorer on a device over a mobile data connection due to the traffic the application will generate, that might be charged by the mobile carrier.
The development or testing machine's firewall must allow connections to the WP7 Isolated Storage Explorer Service on port 2502.
Step6: Save a sample .txt file into IsolatedStorage like for example:
<StackPanel x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
<Button Content="Save to IsoStore" Click="Button_Click"/>
</StackPanel>
private void Button_Click(object sender, RoutedEventArgs e)
{
IsolatedStorageFile myIsolatedStorage = IsolatedStorageFile.GetUserStoreForApplication();
//create new file
using (StreamWriter writeFile = new StreamWriter(new IsolatedStorageFileStream("myFile.txt", FileMode.Create, FileAccess.Write, myIsolatedStorage)))
{
string someTextData = "This is some text data to be saved in a new text file in the IsolatedStorage!";
writeFile.WriteLine(someTextData);
writeFile.Close();
}
}
NOTE: For more info about Isolated Storage you can take a look at our of 12posts: All about WP7 Isolated Storage
Step7: Run your Windows Phone project and press the "Save to IsoStore" button so that the text file will be stored in to the Isolated Storage. Next run the Isolated Storage Explorer tool which you can find installed on your PC at the following folder:
C:\Program Files (x86)\WP7 Isolated Storage Explorer\DesktopClient\WP7 Isolated Storage Explorer.exe
Alternatively you can start the tool from Visual Studio: View->Other Windows-> WP7 Isolated Storage Explorer:
Here is how the result should look like:
Step8: You can also add a file from your computer directly to the Isolated Storage of your app without writing any code just by using the Isolated Storage Explorer tool context menu and selecting the "Add Existing Item" option:
In this post I demonstrated how quick and easy it is to explore the IsolatedStorage of your Windows Phone app using the Windows Phone Isolated Storage Explorer. Here is the full source code:
I hope that the post was helpful.
You can also follow us on Twitter @winphonegeek
Comments
Excellent Tool
posted by: Justin on 9/1/2011 11:54:55 PM
Allow me to say that this tool is excellent and I use it on a daily basis for testing and working with applications in the WP7 Emulator.
How to use this tool with Device?
posted by: Meenal on 3/29/2012 12:55:53 PM
How to use this tool with Device?
Thx
posted by: Sam on 3/30/2012 1:14:18 AM
UseFul Thx Bro :))
how to view table data
posted by: sol on 4/7/2012 8:55:27 AM
hey guys
iam newbie to this wp7 development!!iam using sql ce 3.5 as database thru isostore now my question is iam inserting records but unable to view data the table shows 0 rows affected so where is the data going..Pls help me out..thnxs
Our Top Articles & Free books
- Our FREE e-book: "Windows Phone Toolkit In Depth" 2nd edition
- 400+ Windows Phone Development articles in our Article Index
- 21 WP7 Toolkit in Depth articles covering all controls
- 12 WP7 Coding4Fun Toolkit in Depth articles covering all controls
- Performance Tips when creating WP7 apps
- Creating a WP7 Custom Control in 7 Steps
- WP7 working with VisualStates: How to make a ToggleSwitch from CheckBox
- What makes a WP7 App successful
- Creating theme friendly UI in WP7 using OpacityMask
- Implementing Windows Phone 7 DataTemplateSelector and CustomDataTemplateSelector
- All about Splash Screens in WP7 – Creating animated Splash Screen
- Getting Started with Unit Testing in Silverlight for WP7
- WP7 WatermarkedTextBox custom control
Our Top Tips & Samples
- All about WP7 Isolated Storage series
- WP7 Dynamically Generating DataTemplate in code
- 5 tips for a successful WP7 Marketplace submission
- WP7: Navigating to a page in different assembly
- WP7 ContextMenu: answers to popular questions
- WP7 ListBox: answers to popular questions
- WP7 working with Images: Content vs Resource build action
- WP7 Element Binding samples
- WP7 working with XML: reading, filtering and databinding
- Drawing in WP7: #2 Drawing shapes with finger
- WP7 TextBox Light theme problems - the solution
- Changing the WP7 Panorama Background Image dynamically with Animation
