Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User dexterq's Avatar
    Join Date
    Feb 2011
    Posts
    6
    Hi,

    i'm currently using Qt 4.7 for Symbian to develop a Symbian app, when client launch the app, it will download some data from server, and save it at current folder.

    when i have a new version of my app, client will install it at the same folder and replace the previous app, therefore the previous version data was still there.

    is there any way to clean the previous data before client launch the app?

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,673
    you could always make an executable that is run during the uninstallation process, and which then would take care of deleting any data. Note that if the data is the private folder then it will not be deleted really. Or you could make a simple logic to determine a first-run situation, in which you could go and clean any data that was left by previous installations.

  3. #3
    Registered User dexterq's Avatar
    Join Date
    Feb 2011
    Posts
    6
    is that mean i have to make another sis or exe to intercept the installation and do the work ?

  4. #4
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,673
    if the data is not located in private folders, yes, then that would be one possible way on doing it. anyway, you could also implement easy ways on detecting the first run condition and do the cleaning in there.

  5. #5
    Nokia Developer Champion danhicksbyron's Avatar
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209
    Put a version number in your app. Store that number with the data you want to erase. On startup, if the number is different, erase the data.

  6. #6
    Registered User dexterq's Avatar
    Join Date
    Feb 2011
    Posts
    6
    Quote Originally Posted by symbianyucca View Post
    if the data is not located in private folders, yes, then that would be one possible way on doing it. anyway, you could also implement easy ways on detecting the first run condition and do the cleaning in there.
    thx for the reply, actually i'm trying to see whether it can be done right after the installation and before the app launch. Anyway, it still can be done right after the app launch which is an easy way.

Similar Threads

  1. Replace the Previous Version in Nokia 6275
    By sasikumar31 in forum Mobile Java General
    Replies: 4
    Last Post: 2008-10-16, 13:59
  2. Replies: 3
    Last Post: 2008-10-15, 05:54
  3. Socket : server gets data only when I exit client app
    By viku_006 in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2007-06-25, 12:26
  4. can previous container be active when we switch to other view?
    By pavanirm in forum Symbian User Interface
    Replies: 1
    Last Post: 2006-08-18, 09:54
  5. Does SDK 2.0 replace all previous SDKs?
    By huiben in forum Mobile Java General
    Replies: 2
    Last Post: 2003-06-10, 20:01

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