WindowsPhoneGeek

WPAppInfo

Login | Join (Why?)

rss rss rss
logo

All about WP7 Isolated Storage – intro to Isolated Storage

published on: 3/10/2011 | Views: N/A | Tags: IsoStore

by WindowsPhoneGeek

Recently we received lots of requests for a series of articles about Isolated Storage. At first I was thinking about a series of long articles but later I decided that it would be better to write something simple and easy to understand that targets exactly the problem and give a solution.  So I am starting the “All about WP7 Isolated Storage ” series of short articles focused on real practical examples with source code rather than a plain theory. I will try to explain the key things you need to know about Isolated Storage in Silverlight for WP7. Here is the what is included in this series:

This is the first post so I am going to give a brief explanation of what is Isolated Storage. (NOTE: This is the only post that is not focused on examples, because before we begin we need to know the basic/fundamental concepts of the Isolated Storage ).

What is Isolated Storage?

Basically Isolated Storage is used to store local data a on a Windows Phone 7 phone. The following figure represents the folder structure for a storage application:

Isolated storage enables managed applications to create and maintain local storage. The mobile architecture is similar to the Silverlight-based applications on Windows. All I/O operations are restricted to isolated storage and do not have direct access to the underlying operating system file system, which helps to provide security and prevents unauthorized access and data corruption from other apps.

NOTE: If you have two applications that work with the same data, then that data can’t be local to either application. You need to use a web service.

NOTE: Windows Phone applications do not have an imposed quota size because the requirements for each application’s scenario are different. So storage resources on a phone are limited  so applications should only store necessary data. When a Windows Phone has only 10% of storage space remaining, the user will receive a notification of this status and even the whole app can stop working which is not a favorable option from a user’s perspective!

You can perform different manipulation in the Isolated Storage like writing to a file, creating folders and files, reading data, removing file, etc.

Basically in Silverlight for  Windows Phone 7 you can store data in:

  • IsolatedStorageSettings
  • Folders and files in the Isolated Storage
  • Database

That was the intro post of the “All about WP7 Isolated Storage” series of articles. Stay tuned with the rest of the posts.

Reference: MSDN Documentation.

You can also follow us on Twitter @winphonegeek

Comments

Thsnks for starting this series

posted by: Tohan on 3/10/2011 4:07:03 PM

Thank you guys for starting this series. I have been waiting for it.

Next articles

posted by: Tomas on 3/10/2011 4:08:43 PM

Vote +1. Looking forward to the rest of the articles. Cheers!

figure not displayed

posted by: Alfah on 10/12/2011 10:37:59 AM

good work i must say :) i jus wanted to point out that the figure representing the folder structure is not to be seen.

thanks for the tutorial

posted by: kabinad on 10/19/2011 11:04:31 AM

this is very helpful tutorial .thank you

get data from SD card

posted by: vijay on 2/21/2012 2:24:43 PM

can anybody help me, how can i read the file which is located in my SD card in windows phone 7... i want to read a perticular file in my application...

Add comment to 'All about WP7 Isolated Storage – intro to Isolated Storage'

Comment

Our Top Articles & Free books

Our Top Tips & Samples