Using getRecord and setRecord() on the palm OS

Hi,

I have created a MIDlet that runs fine on the j2me tool kit.

It uses the RMS classes from the midp API. I am adding a record, resetting it and then later getting the data, using the addRecord(), setRecord() and getRecord() methods. This produces a db file which stores the information correctly.

It all works very good.

Then I wanted to run this MIDlet on a Palm 3.5 OS. So I went through the ususal step:

1. creating jar file from the verified classes of the MIDlet.

2. Creaate the prc file from the jar file.

The application works fine on the Palm OS, images and everything.

The only thing wrong is that it is not be able to get data from the Storage area like it did on the J2me ToolKit.( I do not even know if there is a pdf file created, like the db file that was created on the j2me ToolKit).

Does setRecord() not create a db file like it did using the j2me ToolKit?

Do I need to create a separate pdb file for the Palm OS or is is supposed to be vreated if not found?

How can I get the Palm OS read and write to the storage file using RMS code?

Any help would be greatly appreciated,

Thanks in advanve,

Bridget

[1230 byte] By [flan04] at [2007-9-26 10:32:46]
# 1

[flan04],

The MIDP for Palm OS 1.0 implementation is fully compliant with the current CLDC/MIDP 1.0 specification hence the RMS code should work exactly as you have tested it on the POSE emulator in the J2ME Wireless Toolkit.

I'm not sure why your MIDlet code did not work on the actual Palm OS 3.5 device since you have not included the source code for us forumers to view.

I'm suspecting that your Palm handheld device is short of memory, are you having a 2mb or 8mb device?

It will help if you post your code and also let us know the device memory size and which MIDP implementation you have installed onto the device.

Allen Lai

Developer Technical Support

SUN Microsystems

http://www.sun.com/developers/support/

allenlai at 2007-7-1 22:54:21 > top of Java-index,Java Mobility Forums,Java ME Technologies...