473,385 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

midp - rms record ID

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?

Nov 7 '06 #1
1 4692
kn
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).

Nov 10 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jone Smide | last post by:
Is there a way to calculate a cos and a sin in J2ME MIDP 1.0?
5
by: SpaceCowboy | last post by:
I'm using Sun ONE Studio 4 update 1, Community Edition with Nokia Developer's Suite integration. I'm developing a J2ME project with MIDP. I wanted to use the java.math.floor() function, but...
0
by: Jens Christian Larsen | last post by:
I have downloaded and installed the MIDP and CLDC reference implementations from java.sun.com but I can't seem to get them to work properly on Windows. When I start one of the example MIDlets in...
0
by: Gianluca | last post by:
Hi, I have a Motorola V525 with MIDP 2.0 support. I'm tring to use MIDP 2.0 sockets without success. In the development environment(Sun ONE Studio 5), everything seems to work but when I...
0
by: Bo | last post by:
Hi The rectangles I draw in paint() always hide underneath the "Select one to launch" screen, while the string "Hello World" is drawn over the "to launch" screen. What am I doing wrong? jdk...
1
by: Raaijmakers, Vincent (IndSys,GE Interlogix) | last post by:
Does anyone know what could be the problem if PNG generated by PIL don't work for (java) MIDP applications? All the images can be used by different type of graphical applications. The java MIDP...
15
by: Steve | last post by:
I have a form with about 25 fields. In the BeforeUpdate event of the form, I have code that sets the default value of each field to its current value. For a new record, I can put the focus in any...
1
by: Anoniem | last post by:
Hi, I'm trying to start a example which comes with the midp2.0 distribution. My relevant environment variables are set in a batch file like: ...
1
by: IvanGammelgaard | last post by:
I believe that MIDP 2.0 and CLDC 1.1 is the frameworks/platforms to use when you want to target most mobile phones on the market. If you think otherwise - please give me your thoughts. But what...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.