Hi,
New to this, so bear with me!
I am creating a simple Midp mobile phone app. I am saving a "username" and
"password" to rms, this returns two recordID's.
When my app runs, it needs to check whether a username and password were
saved, so I want to read the records... but how do I know the recordID?
kn - 10 Nov 2006 08:54 GMT
> I am creating a simple Midp mobile phone app. I am saving a "username" and
> "password" to rms, this returns two recordID's.
>
> When my app runs, it needs to check whether a username and password were
> saved, so I want to read the records... but how do I know the recordID?
You can enumerate records with RecordStore.enumerateRecords(...) and
then use nextRecordId from RecordEnumeration object.
However it will be hard to tell if a record is the username or password.
I suggest storing username and password as a single byte[] delimited with
special byte (0 for example).