×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Mar 2007
    Posts
    104

    Create file in Recordstore on installation?

    Hi everyone:-)

    I am using the recordstore in my application and everything works fine at the moment:-)

    I was wondering if its possible to create a file in recordstore when i install my application on a device? So i want to have this file in recordstore before i start up the application.

  2. #2
    Registered User
    Join Date
    Apr 2003
    Posts
    62

    Re: Create file in Recordstore on installation?

    Customized installation actions are not possible in MIDlet installations.

    Why don't you check at application startup if the recordstore exists and if it contains the required image? If it does not, then create recordstore and create the file there.

  3. #3
    Registered User
    Join Date
    May 2007
    Posts
    13

    Re: Create file in Recordstore on installation?

    After opening the recordstore

    use the following code-

    Code:
    int recordCount = rs.getNumRecords();
    
    if(recordCount == 0){
    //use addRecord()
    }else{
    //use setRecord method
    }
    followed by your routine code

  4. #4
    Regular Contributor
    Join Date
    Aug 2006
    Location
    Rawalpindi, Pakistan
    Posts
    486

    Re: Create file in Recordstore on installation?

    adilb is absolutely right here is post which contains sample code incase u need it
    http://discussion.forum.nokia.com/fo...d.php?t=108425
    Regards
    Nouman

Similar Threads

  1. [announce] PyUIQ. Python for UIQ 2.1 and 3.x
    By OscarBernabeu in forum Symbian
    Replies: 35
    Last Post: 2008-01-17, 09:12
  2. Replies: 0
    Last Post: 2007-03-22, 13:07
  3. Can't create settings file and log file.
    By skhimsara in forum Symbian
    Replies: 1
    Last Post: 2006-05-08, 09:25
  4. Steps to create SIS. How create .pkg file for petran?
    By BobbyFletcher in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2004-04-21, 18:26

Posting Permissions

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