Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User jupaavola's Avatar
    Join Date
    Dec 2010
    Posts
    62
    Hi

    As title says, if I add for example XML file to my project as content. I can read it from code with XDocument. But I cannot see file with in Isolated Storage. Also, XDocument throws exception when trying to save.

    So, can I somehow modify files which are included as content ?

    Or do I need to read XML and then save it to Isolated Storage and continue using it from there ?
    This approach would drive to situation where files are as content, in some function/constructor read file with resource stream and save to isolated storage.

  2. #2
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    Based on the results of a search for wp7 deploy isolated storage with Google, I strongly believe that you have to do the latter,
    Or do I need to read XML and then save it to Isolated Storage and continue using it from there
    However I disagree with
    This approach would drive to situation where files are as content, in some function/constructor read file with resource stream and save to isolated storage.
    You should create the working copy on the first access (when you find it missing) and never touch the resource stream again.

    An interesting 'shortcut' may exist for databases though: http://erikej.blogspot.com/2012/01/w...abase-tip.html

  3. #3
    Nokia Developer Champion rudyhuyn's Avatar
    Join Date
    Jun 2012
    Posts
    5
    You are right, you need to copy the file to isolated storage and after that work with it

Similar Threads

  1. How to use Display.vibrate() - static content?
    By schumi1331 in forum Mobile Java General
    Replies: 3
    Last Post: 2011-11-23, 14:08
  2. can't create .rsg file when i modified the app
    By isarc in forum Symbian C++
    Replies: 2
    Last Post: 2008-04-24, 17:22
  3. Replies: 2
    Last Post: 2007-11-20, 14:04
  4. Import a project in CodeWarior and have a Copy so dat the original wont get modified
    By netra in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2007-04-27, 14:40

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved