×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Jul 2003
    Posts
    89

    Adding new images to the midlet

    HI
    I am getting new images through a HTTP connection,
    How can I store them on the phone and later use the same midlet to access those images, I am using a NOKIA 6310i

    Thanks

  2. #2
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395
    Hi!

    The only means of storing data across sessions within the MIDP framework is to use a RecordStore. A RecordStore is a kind of named "file", organised into records, each of which is a byte array. Records do not all have to be the same length. Take a look in the API documentation, for the package javax.microedition.rms. The amount of storage available is limited - I think about 20k on a 6310i. A RecordStore exists in the same logical "space" as the Midlet (not necessarily the same memory, though). By this I mean that the RecordStore is accessible only to the Midlet that created it, or to another Midlet in the same suite (same jar file). When the jar is removed, all the RecordStores are deleted also.

    Graham.

  3. #3
    Registered User
    Join Date
    Jul 2003
    Posts
    12
    Hi Graham,

    You said that 6310i has only 20K of persistent storage allowed for RMS which is as stated on the Nokia Spec.

    How about phones like the 3410 which has no persistent storage (it's blanked out in the spec)? Does this mean that RMS won't work?

    Thanks,

    Ben

  4. #4
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395
    Hi Ben!

    Hmmm... I think you're looking at the same document as me - "Characteristics of Nokia Java-Enabled Phones". I don't know why so much information is missing from the tables in this document. I'm working on a series-40 phone - using the 7210 emulator, and a real 6100. RMS works on both, so the available memory for this is not zero!! How much memory such a phone can be expected to have is, of course, a mystery! I seem to be able to create a record store of about 16k on the 6100 - whether this is typical or not, I don't know.

    About the 3410 - the CLDC spec. calls for a minimum of 8k persistent storage, in which case it must have some! Try it - once you've created a record store, you can find out how much space is available for it.

    The key point is: RMS space is quite limited on most devices, so unless you're developing only for a 7650, then you're going to have to use it wisely!

    Graham.

Posting Permissions

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