I have an application on Marketplace, the application uses Isolated storage.
I have an update to the app which fixes a few bugs and also adds the facility to connect and sync with my website (which is a cloud based version of the same app).
My question is; what is the risk of the isostore getting wiped or corrupted during the upgrade? Is the protocol to warn users or do we assume that they regularly back up their phones and consider this a non issue?
I believe that isolated storage remains intact (after all, this is why there are dedicated APIs for upgrading database schema in-place) - it's only if an application is uninstalled, does it's isolated storage get wiped as well.
As Rowland said, The Isolated storage wipes off only if the application is uninstalled. If you have changed the way data is written or read from storage in update, make sure the update does not break anything.
Isolated Storage Best Practices for Windows Phone
Related
Is there a case when data would be erased (i.e. looking like clean install of app) besides using the Remove App feature?
I know the Downloads folder could be erased automatically if the device runs low on internal storage. What about my app?
Also, is there some kind of magical quota where app data would get deleted?
I'm developing a Windows Universal App, I need to share a database for all the users' account existing on pc.
Is it possible? What's the best solution?
Thanks
In Universal Apps the app data is stored in an app data store. When an app is installed, the system gives it its own per-user data stores for settings and files. So what you are asking is not possible using the native app data APIs.
Also note:
The system preserves the contents of these data stores when the user
installs an update to your app and removes the contents of these data
stores completely and cleanly when your app is uninstalled.
Source: Store and retrieve settings and other app data
I came across the term "IsolatedStorage" in windows phone. Can anybody explain it in detail how is it related to windows phone applications? Also how does it affect while application version upgrade?
Isolated Storage refers the private read / write directories that each app has for storing their own data. It is isolated from all other apps on the system. When an app is upgraded via the store on an end-user's machine, the isolated storage is preserved.
Note that during development, Isolated Storage of an app can be deleted if you do a full rebuild of the project.
IsolatedStorage is a way of allowing apps to save files locally to the application within a device. Until the app is uninstalled, the IsolatedStorage for the application is persisted. If the user upgrades the app in the store, as long as there isn't a change in the way the IsolatedStorage is implemented, it will also be preserved during the update.
Hi How do I delete a local file in my application after copying it to the IsolatedStorage?
I want to delete only the file in local folder. Not in the Isolated Storage. I'm using WP 7.1.
tnks
You don't have write access to the folder where your application is installed. It's therefore impossible to delete the file.
Windows Phone is designed to be one of the most secure environments in the mobile market. If you look at many of the standards it enforces you will see that this is a consistent theme.
For example:
Your app does not have the ability to intercept calls or text
messages (though the library exists)
Your app cannot modify hardware buttons (there is a few MINOR
exceptions to this rule like manipulating the back button event)
Your app cannot access memory locations outside of the Isolated
Storage it is assigned by the phone.
These standards are put in place to protect the user from malicious software and to keep a clean and consistent feel across the environment.
I'm building a windows phone 7 application using silverlight 4. I store my data in Isolated storage as outlined here. The program runs with no errors. My question is where I can see the file I have saved? Is it possible to find the file in the windows phone 7 emulator?
The "Mango" SDK ships with the ISETool that can take and restore snapshots of an application's isolated storage to/from a local directory:
# Copy data from IS to directory
ISETool.exe ts xd <PRODUCT-ID> "C:\TempDirectory\IsolatedStore"
# Copy data from IS to directory
ISETool.exe rs xd <PRODUCT-ID> "C:\TempDirectory\IsolatedStore"
After some more googling, i found this post. It seems that "the emulator does not save its state when you close it."
Also:
Saving State. To test compatibility with other .Net framework environments I just re-implemented some standard Isolated Storage example code for application settings in my Silverlight application. It just works. But note, the preview emulator doesn’t hold state beyond debug sessions – so you can only test state storage in your application session at the moment.
from this post. (http://wotudo.net/blogs/wotudo/archive/2010/03/15/mix-building-a-windows-phone-7-series-silverlight-application.aspx)
The intent of isolated storage is for it to be only accessible by the application that wrote the data in that store. Isolated storage can not be shared across applications, hence being able to find the files you store in isolated storage through an explorer like experience isn't allowed.
If you need to access the files to observe the data in it, or to share it across applications, consider storing the file in a cloud service. Or if you need to look at the contents of that file for debug purposes, maybe add an option to write that file on your server.
I use this program to help me capture the data from the windows 7 phone emulator.