DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone >

How to find out where the IsolatedStorage is in a Windows Phone 7 app?

Denzel D. user avatar by
Denzel D.
·
Mar. 18, 11 · · Interview
Like (0)
Save
Tweet
10.97K Views

Join the DZone community and get the full member experience.

Join For Free

Experienced Windows Phone 7 developers already know that there is an actual file system on the device that is similiar structure-wise to that of the actual Windows OS. A lot of the content managed by the device is stored in local spots scattered across the system that are not publicly disclosed (although since the OS image was already disassembled, most of them are known).

One of these locations is the folder that is designated as the isolated storage for a specific application. It is fairly easy to access it via the default System.IO.IsolatedStorage classes, but it is also possible to get the actual location of the folder that is assigned to the app.

To do this, simply add this line to your program:

IsolatedStorageFile file = IsolatedStorageFile.GetUserStoreForApplication();

Set a breakpoint to a line that goes after the one above, so that file becomes an actual instance. Once the breakpoint is hit, look at the data related to file, specifically at the m_AppFilesPath field:

If you save anything in the isolated storage, you can access the resource from inside your application by using an absolute URL. The access to this resource is currently only limited to the application context - even if you know the folder for another isolated storage, you cannot access it from an application it is not assigned to. It seems to me like there is an owner policy enforced, but I am looking into that.

You can use this method to easily load resources (e.g. images):

BitmapImage image = new BitmapImage(new Uri("file://Applications/Data/4FFA38B5-00AF-4760-A7EB-7C0C0BC1D31A/Data/IsolatedStore/image.jpg"));

 

Windows Phone app

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • What Is SSO and Why Do You Need It?
  • How to Utilize Python Machine Learning Models
  • Creating a Spring Boot Project With Eclipse and Maven
  • Augmented Analytics: The Future of Business Intelligence

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo