[mono-android] IsolatedStorage or OpenFileOutput?
Benjamin Baldacci
benjamin.baldacci at gmail.com
Tue Jan 3 03:44:45 EST 2012
Hi everyone,
I would like to access to the file system (only to store small things like
using IsolatedStorage on WP7).
If I well understand, to create a file I have to do this:
IsolatedStorageFile file = IsolatedStorageFile.
GetUserStoreForAssembly();
file.CreateFile(filename);
But an exception occured: "System.UnauthorizedAccessException: Access to
the path "/data/data/XXXX/files/.config" is denied."
I searched on the documentation, stackoverflow, etc. but I didn't find
solution.
So I tried an other way with OpenFileOutput.
To open a file I did this:
Stream fos = context.OpenFileOutput(filename,
Android.Content.FileCreationMode.Private);
But a FileNotFoundException occured. I search over the documentation and
found nothing that help me.
I want only access file for my application (not external).
Thanks for your answers,
PS: I already tried to desactivate the fast deployment but doesn't work.
And I work under the version 2.1 of Android.
--
Benjamin Baldacci linkedin <http://www.linkedin.com/in/benjaminbaldacci>
Mobile : +33 6 32 45 63 79
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodroid/attachments/20120103/751023c7/attachment-0001.html
More information about the Monodroid
mailing list