×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    10

    Question about RMS -- MIDP1.0 & MIDP 2.0

    Hi,

    I have a question.

    The code is:

    String[] RS_AName = RecordStore.listRecordStores() ;

    At MIDP 1.0, it is ok. ( Nokia 7210 MIDP SDK 1.0 )

    At MIDP 2.0, it returns null. ( Series 60 MIDP Concept SDK Beta 0.3 )

    How can I do to read RMS name at MIDP 2.0 ?

  2. #2
    Registered User
    Join Date
    Jul 2003
    Location
    Finland, Tampere
    Posts
    1,113
    bennet_chen, RTFM

    Code:
    listRecordStores
    ...
    Returns:
    an array of the names of record stores owned by the MIDlet suite.
    Note that if the MIDlet suite does not have any record stores,
    this function will return NULL.
    I would rather be surprized that Nokia 7210 MIDP SDK 1.0 returnes not null
    Probably you already stored some data there

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    10

    Clear the problem

    doctordwarf,

    Thanks for your help.

    I have a program, read some data , and save into RMS.

    In MIDP 1.0, It's ok.

    In MIDP 2.0, I can see the file in my hard disk, but I can not read it out. (appdb folder, these files like run_by_class_storage_#M#A#D#O#Info.db)


    Please help me to solve the problem, thanks.

  4. #4
    Registered User
    Join Date
    Jul 2003
    Location
    Finland, Tampere
    Posts
    1,113
    bennet_chen
    I am developing for MIDP 1.0 currently, so my advices may not work in your case.

    However I just tested my game on Series 60 MIDP Concept SDK Beta 0.3 (used other emulators before) and it perfectly stores and reads to/from RMS. I can also see these files on harddrive.

    Why do you need listing RecordStores at all?
    I don't think you use different store name all the time.
    Try using RecordStore.openRecordStore()

  5. #5
    Registered User
    Join Date
    Mar 2003
    Posts
    10
    doctordwarf,

    In my case, I really need to know all of these RecordStore names. Thanks for your advice, but it dont work for me.


    Please help me to confirm the RMS:

    My Code is :

    rs1=RecordStore.openRecordStore("MADOInfo",true);


    And on my harddrive, I can see the filename like

    " run_by_class_storage_#M#A#D#O#Info.db "

    Is the filename right ?
    Or, I need to change the filename to lowercase letter?

Posting Permissions

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