Results 1 to 3 of 3

Thread: HowTo: Saving application settings on Symbian Device

  1. #1
    Join Date
    Jan 2011
    Location
    Pearl of the Orient Seas
    Posts
    40
    Thanks
    12
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Wink HowTo: Saving application settings on Symbian Device

    Hi everyone,

    Before I posted this thread, I searched the forums for a solution. But I couldn't find what I'm looking for.

    I wanted to add a feature on our app, that checks application updates on a once-a-day basis. Currently, everytime you run the app, it checks for updates. If you run the app a hundred times a day, it checks for updates a hundred times also. This is bad for users.

    What I want to do is add a feature that only checks for updates once a day (when the app is run). Is this possible? Can I save the state of the application on the device?

    I tried using QSettings, but it only works on the Simulator, when I run the app on the device, it doesn't save anything. :C

    Can anyone suggest a better solution for this? thanks in advance.

  2. #2
    Join Date
    May 2011
    Posts
    239
    Thanks
    4
    Thanked 35 Times in 35 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Symbian S60

    Default Re: HowTo: Saving application settings on Symbian Device

    For a simple task like this, writing and reading a file with QFile would be an easy solution.

    But perhaps there is some problem in you QSettings based code that could be fixed.

    I remember having a problem with QSettings not saving data and needing to add a MySettings->sync() call after the writes. This was in a destructor of a class and I suppose stopping the application was not quite synchronised with what ever QSettings was doing. The same may explain your situation -- simulator is so much slower that it has different problems than the device.

  3. The following user says thank you to mvuori for this useful post:

    aya_lawliet (23rd June 2011)

  4. #3
    Join Date
    Jan 2011
    Location
    Pearl of the Orient Seas
    Posts
    40
    Thanks
    12
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default Re: HowTo: Saving application settings on Symbian Device

    Thank you very much. I will try the sync() first. The QFile is also a good solution to save other data, other than the application state. Thanks for the idea.

Similar Threads

  1. Replies: 20
    Last Post: 22nd February 2011, 17:01
  2. [Symbian] show device's menu within a fullscreen application
    By curreli in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 12th September 2010, 07:54
  3. XML saving settings
    By ^NyAw^ in forum Qt Programming
    Replies: 12
    Last Post: 12th May 2009, 17:05
  4. Saving settings to XML
    By arturo182 in forum Qt Programming
    Replies: 2
    Last Post: 8th March 2009, 11:10
  5. saving settings does not work
    By MarkoSan in forum Qt Programming
    Replies: 4
    Last Post: 13th June 2008, 19:29

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.