×

Discussion Board

Results 1 to 4 of 4

Thread: rms

  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    29

    rms

    hi..
    how to check d contents of record store data?data which is already exists?
    thanks
    reshmy

  2. #2
    Registered User
    Join Date
    Sep 2007
    Posts
    14

    Re: rms

    hi..

    Record Store data is stored in nonvolatile RAM of mobile phone, nd midlet is just fetching data from RAM,

  3. #3
    Registered User
    Join Date
    Dec 2007
    Posts
    3

    Re: rms

    this is one way, but rememember: the API specification is your friend


    String[] recordStores = RecordStore.listRecordStores();
    try {
    for (int i=0;i<recordStores.length;i++)
    {
    RecordStore rs = RecordStore.openRecordStore(recordStores[i],false);
    // do something with the recordstore, such as:
    RecordEnumeration re = rs.enumerateRecords(null,null,false);
    while(re.hasNextElement())
    {
    byte[] recordData = re.nextRecord();
    // do something with record (if you know what's in it)
    }
    rs.closeRecordStore();
    }
    } catch(RecordStoreException rse) {}


    however, if you don't know what's in the records you are kind of lost...

  4. #4
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,430

    Re: rms

    Quote Originally Posted by reshmy View Post
    how to check d contents of record store data?data which is already exists?
    Here are some links that would be of some help and to get basic idea on RecordStores.

    MIDP Database Programming Using RMS: a Persistent Storage for MIDlets
    http://developers.sun.com/techtopics...ist/index.html

    Databases and MIDP, Part 1: Understanding the Record Management System
    http://developers.sun.com/techtopics...rms/index.html

    Regards
    Gopal

Similar Threads

  1. RMS data LOST problem in 3410!!!
    By bitsonic in forum Mobile Java General
    Replies: 6
    Last Post: 2009-03-27, 09:50
  2. RMS record sizes.
    By earamsey in forum Mobile Java General
    Replies: 1
    Last Post: 2007-10-18, 13:51
  3. About RMS database secutity
    By browndrf in forum Mobile Java Networking & Messaging & Security
    Replies: 9
    Last Post: 2007-07-27, 18:45
  4. Create a RMS before 1º execute
    By Pepper_91 in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2006-07-11, 17:27
  5. 7210 & 7250 RMS resetting problem
    By keithmcneill in forum Mobile Java General
    Replies: 1
    Last Post: 2003-11-13, 21:04

Posting Permissions

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