Discussion Board

Results 1 to 5 of 5

Thread: SAVING INTO RMS

  1. #1
    Registered User acutex's Avatar
    Join Date
    Jul 2008
    Posts
    11
    I capture data from a webserver in this format
    001,A I,32313
    001,A$A ENT,32224
    001,ABAA PA,32040
    001,ABEN WA HA,32121
    001,ABNIES CORNER,32139
    001,ABOTARE,3195

    i want to be able to store and retrieve the data from the RMS.
    i will be grateful if someone can give me a sample code to accomplish it.
    Last edited by acutex; 2008-08-05 at 04:47.

  2. #2
    Regular Contributor amitmishra19's Avatar
    Join Date
    Apr 2007
    Posts
    220
    Hi acutex

    I hope the following link will help-

    http://developers.sun.com/mobility/m...s/databaserms/

    Regards
    Amit

  3. #3
    Registered User acutex's Avatar
    Join Date
    Jul 2008
    Posts
    11
    Hi,

    thanks for the link i'm very grateful, i managed to get it working but i have one difficulty.

    The trouble I am having is finding documentation on how to tell if the recordtsore exists before creating a new one. the first time the user starts the program on their phone I want to set up records in the brand new record store, but the next time when they start the app, i want it to detect whether the recordstore already exists and if it does then it won't proceed to create the records once more. Is their a method of doing this?

    thank you

  4. #4
    Regular Contributor amitmishra19's Avatar
    Join Date
    Apr 2007
    Posts
    220
    Hi acutex,

    One of the possible solution to your requirement is in the way we create a RecordStore. Look at the following API definition-

    public static RecordStore openRecordStore(String recordStoreName,
    boolean createIfNecessary)

    Pass the value of "createIfNecessary" parameter as true. Doing so, for the first time The above API will create a new record store with the specified name and open it. From the next time onwards it will simply simply open it, without creating it.

    If the recordstore does not exists it will through RecordStoreNotFoundException exception.

    Hope I have addressed your query.

    Regards
    Amit

  5. #5

Similar Threads

  1. RMS record sizes.
    By earamsey in forum Mobile Java General
    Replies: 1
    Last Post: 2007-10-18, 13:51
  2. How to protect against power failure while saving data in RMS
    By rushabh_it in forum Mobile Java General
    Replies: 6
    Last Post: 2006-10-31, 02:57
  3. Saving audio files from RMS to phone storage
    By a_nemoff in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2006-05-17, 19:04
  4. Saving arrays to the RMS
    By Woody_FX in forum Mobile Java General
    Replies: 0
    Last Post: 2004-07-13, 10:08
  5. Crashing App by saving data in RMS
    By mildagenius in forum Mobile Java General
    Replies: 2
    Last Post: 2003-12-11, 23:17

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