EvenTiles from Start to Finish - Part 6
Join the DZone community and get the full member experience.
Join For Freein the previous episode of this series about how to develop a windows phone application from scratch we used isolatedstorage to persist some data. since isolatedstorage is a file store on a windows phone device, for exclusive use by a single application, it can be a challenge to look at its contents. luckily, the windows phone 7.1 sdk has a tool available to explore isolatedstorage contents. in this episode of eventiles we will explore this isolated storage explorer tool .
the isolated storage explorer tool is a command line tool, which is installed together with the windows phone 7.1 sdk in the following folder:
c:\program files (x86)\microsoft sdks\windows phone\v7.1\tools (64 bit os)
or
c:\program files\microsoft sdks\windows phone\v7.1\tools (32 bit os)
the tool itself has a lot of parameters, to get contents from
isolatedstorage, to write contents to isolatedstorage, to specify an
application and to specify a device. in a command prompt some limited
help information is available:
in order to retrieve our applicationsettings from isolatedstorage for
eventiles, the first thing we need to know is the productid for our
application. this ide can be found in the wmappmanifest.xml file.
wmappmanifest.xml
<deployment xmlns="http://schemas.microsoft.com/windowsphone/2009/deployment" appplatformversion="7.1"> <app xmlns="" productid="{883385e6-52e5-4835-83db-8a17499b5767}" title="eventiles"
the next thing we need to do is make sure that the emulator is
started (or a physical device is connected). either should have the
application installed, but it is not necessary to have the application
running. after passing the following command,
the folder
c:\iso
will contain a snapshot of our application’s isolatedstorage.
when we drag and drop the _applicationsettings file to visual studio
2010, you can see that its contents are xml data, representing a
dictionary with one single entry defined in it, matching our secondary
tile’s back side string.
you might not like using a command line tool to explorer
isolatedstorage. in that case, there is good news for you. if you browse
to
http://wptools.codeplex.com/
,
you will find the windows phone power tools for download. this handy
collection of tools embeds the different sdk tools including the
isolated storage explorer tool inside a windows application. with that
application you can explore your application’s isolatedstorage as well.
using the power tool, it is also easy to write new or modified files to
your application’s isolatedstorage. the latter makes a lot of sense if
you want to test new versions of applications against old contents in
isolatedstorage, for instance to migrate old files to new versions.
the following video shows the isolated storage explorer tool and the windows phone power tools in action.
so this time we did not add functionality to our eventiles application,
but it is important to learn about useful tools to help us develop our
applications as well. in the next episode we will talk about tombstoning
and fast application switching and what we need to do in our
application to support these two important execution states on windows
phone devices.
if you want to see eventiles already in action on your windows phone,
you can install the latest release from marketplace. remember that this
application is not meant to be extremely useful, although it contains
similar functionality that “serious” applications have. all
functionality that you can find in the released version of eventiles
will be covered in the upcoming episodes of this blog series, together
with all source code. just go ahead and get your free copy of eventiles
from marketplace at this location:
http://www.windowsphone.com/en-us/search?q=eventiles
(or search on your phone for eventiles in the marketplace application).
source:
http://mstruys.com/2011/12/07/eventiles-from-start-to-finishpart-6/
Opinions expressed by DZone contributors are their own.
Comments