isolatedstorage

Preserving login session across multiple Android apps

爱⌒轻易说出口 提交于 2019-12-09 23:00:48
问题 I have two apps that both log in to the same system but they have separate functions and may not both be installed at the same time. I can sign the two apps with the same signature no problem, even make them run in the same process. How can I store the login cookie (among other things) in such a way that it is shared by both apps and still be secured from unknown apps? 回答1: Shared user ID should get you access to each other's private storage, you would just need to figure out if the other was

Isolated storage location for windows phone 7?

谁说胖子不能爱 提交于 2019-12-09 18:25:44
问题 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? 回答1: 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

Is Silverlight isolated storage treated as permanent, or as a cache?

橙三吉。 提交于 2019-12-08 19:41:41
问题 How persistent is isolated storage - does Silverlight treat it like a cache, deleting items when it needs more space, or only when the user or application request it? There also seems to be a wide variety of means to identify isolated storage - machine, application, domain, .... What I'm having trouble with is how these all relate to the user. Is it possible , and if so how, to create and later retrieve an isolated storage file with the following properties: The same file is used, regardless

Isolated Storage, OOB, and Removing the App

て烟熏妆下的殇ゞ 提交于 2019-12-08 18:53:56
问题 What happens to the files created by Isolated Storage when the OOB app is removed? Do they remain or are the files also deleted? From what I can deduct the files would be maintained so they can be accessed by the same app in browser. Right? 回答1: Correct, the isolated storage files remain. End users can remove all isolated storage data, or data for a specific app, through the Silverlight Configuration dialog. It is available both in the Start Menu / Applications menu, or by right-clicking on

Accessing images from isolated storage in XAML using “isostore:/” scheme

为君一笑 提交于 2019-12-07 07:39:13
问题 I've downloaded images from the web and saved them to the Isolated Storage and now I want to access those images in my XAML file, giving a Uri as a reference to them. I have verified with IsoStoreSpy that they are stored properly where I would expect them to be and I can create BitmapImages from them if I open the file and read in the byte stream. But now I want to optimize my image handling by passing just a Uri from my model to the IsolatedStorage location and letting my XAML load the image

Why is isolated storage not persisting in my WP7 application?

陌路散爱 提交于 2019-12-07 05:34:25
I am using IsolatedStorageSettings.ApplicationSettings for my application. All code associated with Isolated storage occurs in my Application_Launching, Application_Activated, Application_Closing, and Application_Deactivated methods as follows: public IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings; private void Application_Launching(object sender, LaunchingEventArgs e) { if (settings.Contains("myObjList")) { App.ObjList = (ObservableCollection<myObj>)settings["myObjList"]; } else { settings.Add("myObjList", App.ObjList); } } private void Application_Activated

Silverlight Event Log in Isolated Storage

允我心安 提交于 2019-12-06 16:32:39
Has anyone written an event log that uses Isolated Storage in Silverlight 3? Any suggestions on implementing one? Specific questions: Should I keep a stream writer open, or should I open,write, and close for each entry? How should I remove items from the log atomically? I heard clog from codeplex is pretty good although it targets wcf, i read on codeproject about about a log4net approach that works for silverlight, although both of these log 2 wcf services, im sure with a bit of tweaking you can modify this to write to isolated storage Crypto Logger supports Silverlight apps and libraries and

IsolatedStorageSettings throws an IsolatedStorageFileStream when I try to get value

≡放荡痞女 提交于 2019-12-06 07:59:37
I'm trying to get a boolean value I saved using isolatedStoragesettings like this: IsolatedStorageSettings.ApplicationSettings.TryGetValue(KEYSTRING, out myBoolValue); but I get this exception only when I debug Operation not permitted on IsolatedStorageFileStream. when I use (run without debug) Ctrl+F5 it works just fine. any idea whats wrong here? It appears that this exception can be the result of accessing IsolatedStorageSettings.ApplicationSettings from multiple threads (which would include the completion handler for HTTP requests). I assume IsolatedStorageSettings keeps a shared Stream

Storing objects in IsolatedStorageSettings

心已入冬 提交于 2019-12-06 06:45:40
问题 I have an object I want to store in the IsolatedStorageSettings, which I wan't to reuse when the application restarts. My problem lies in that the code I have written for some reason does not remember the object when trying to access the key upon restarting it. namespace MyNameSpace { public class WindowsPhoneSettings { private const string SelectedSiteKey = "SelectedSite"; private IsolatedStorageSettings isolatedStore = IsolatedStorageSettings.ApplicationSettings; private T RetrieveSetting<T

How do you get a flat listing of all files in IsolatedStorage?

南楼画角 提交于 2019-12-06 06:38:11
问题 I need to get a list of all files in a given IsolatedStorage folder. There are sub folders off the root of the IsolatedStorage and these need to be included in the list. The usual System.IO classes can't be used with IsolatedStorage. 回答1: Here's what I've come up with - it works but I'd be interested to see if there are better alternatives: using System.Collections.Generic; using System.IO; using System.IO.IsolatedStorage; using System.Linq; public static class IsolatedStorageFileExtensions {