×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    309

    Smile Capabilities for saving a XML file to Disk in Symbian OS

    Thanks a lot.
    Last edited by liuxingyu_best; 2009-01-06 at 11:11.

  2. #2
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,355

    Re: Capabilities for saving a XML file to Disk in Symbian OS

    When you write applications start with "CAPABILITY NONE" in the MMP file and then add capabilities as you go, when and if you need them.

    The emulator can report to you (through the epocwind.out file) if you need more capabilities or not. Carbide.c++ 1.3 also has dedicated tools for analyzing these requirements.

    AllFiles is a capability that requires manufacturer's approval and especially such capabilities should not be used unless absolutely necessarily. In fact they are hardly ever needed.

    To save a file on the C:\ drive (any type of file and in fact on any drive) you do not need any capability as long as you do not write in a protected location. If you write in your data cage or if you write in an unprotected area (such as C:\Data\Others) you have no restrictions at all.

    I have said it before and I am forced to repeat it, don't even think about developing S60 applications if you do not know by heart the Platform Security paradigm.
    Last edited by ltomuta; 2008-06-25 at 14:19.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  3. #3
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    309

    Smile Re: Capabilities for saving a XML file to Disk in Symbian OS

    Thanks a lot.
    Last edited by liuxingyu_best; 2009-01-06 at 11:11.

  4. #4
    Regular Contributor
    Join Date
    Apr 2008
    Posts
    309

    Smile Re: Capabilities for saving a XML file to Disk in Symbian OS

    Thanks a lot.
    Last edited by liuxingyu_best; 2009-01-06 at 11:11.

  5. #5
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,336

    Re: Capabilities for saving a XML file to Disk in Symbian OS

    Quote Originally Posted by liuxingyu_best View Post
    ...but in Emulator, if I don't choose the capability: "AllFiles", the XML file cannot be generated.

    Thank you
    Why? What does it says? Any error?

    Kiran.
    Nokia Developer Wiki Moderation team

  6. #6
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,336

    Re: Capabilities for saving a XML file to Disk in Symbian OS

    Quote Originally Posted by liuxingyu_best View Post
    where is the protected area in symbian? is Z:/dirve ?

    Thank you
    Open SDK help and locate:
    Introduction to S60 3rd Edition >> Platform Platform FAQ >> General Information about Symbian OS Platform Security
    Kiran.
    Nokia Developer Wiki Moderation team

  7. #7
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,355

    Re: Capabilities for saving a XML file to Disk in Symbian OS

    Quote Originally Posted by liuxingyu_best View Post
    Thank you for your reply, but in Emulator, if I don't choose the capability: "AllFiles", the XML file cannot be generated.

    Thank you
    You have to prove this by posting here the relevant error messages from epocwind.our and/or your API calls.

    In programming if something does not work you can always determine why by collecting logs or any other error information you can find. Then you analyze the problem and provide a solution that solves that problem while keeping the project in the designed parameters. If creating the file would truly require AllFiles capability then I would rather think about not creating a file at all. So don't rush into simply adding something that you do not necessarily understand.

    Sorry for the "lecture", but I hope you'll find it useful. If you have any more questions please do not hesitate to ask.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  8. #8
    Registered User
    Join Date
    Oct 2008
    Posts
    2

    Re: Capabilities for saving a XML file to Disk in Symbian OS

    Quote Originally Posted by ltomuta View Post
    When you write applications start with "CAPABILITY NONE" in the MMP file and then add capabilities as you go, when and if you need them.

    The emulator can report to you (through the epocwind.out file) if you need more capabilities or not. Carbide.c++ 1.3 also has dedicated tools for analyzing these requirements.

    AllFiles is a capability that requires manufacturer's approval and especially such capabilities should not be used unless absolutely necessarily. In fact they are hardly ever needed.

    To save a file on the C:\ drive (any type of file and in fact on any drive) you do not need any capability as long as you do not write in a protected location. If you write in your data cage or if you write in an unprotected area (such as C:\Data\Others) you have no restrictions at all.

    I have said it before and I am forced to repeat it, don't even think about developing S60 applications if you do not know by heart the Platform Security paradigm.
    Can You Tell Me,Where did I Get xml to sis Converter? Coz in Carbide.UI the Themes Are Saved in xml Format.So I need to convert.Please Tell Me

  9. #9
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,355

    Re: Capabilities for saving a XML file to Disk in Symbian OS

    There is no such thing as XML to SIS converter. You can however package an XML file in a SIS file, if need be.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

Similar Threads

  1. File Properties info in Symbian
    By noman_csedu in forum Symbian
    Replies: 1
    Last Post: 2008-01-11, 10:24
  2. Tips on using NDS 1.1
    By mitts in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2006-01-18, 16:07
  3. Replies: 1
    Last Post: 2005-05-26, 14:22
  4. Nokia Image Converter
    By davidpurdie in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 15:31
  5. Replies: 0
    Last Post: 2002-06-10, 12:24

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •