Archive for the 'j2me rms' Category

Storing Image into RMS

import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDlet;
import javax.microedition.rms.*;
import java.io.*;
public class ImageStore extends MIDlet implements CommandListener {
private Command CmdExit;
private Command CmdOpen;
private Command CmdBack;
private Command CmdSave;
private Display display;
RecordStore rStore;
Form form = null;
Image image = null;
InputStream is =null;
public ImageStore() {
rStore = null;
display = Display.getDisplay(this);
CmdExit = new Command(”Exit”, 1, 2);
CmdOpen = new Command(”Show”, 1, 3);
CmdBack = new Command(”Back”, 1, 3);
CmdSave = new […]

Basic RMS Example

import javax.microedition.midlet.*;import javax.microedition.lcdui.*;import javax.microedition.rms.*;import java.io.*;
public class RMSDemo extends MIDlet implements CommandListener {
private Display display; private RecordStore rs=null; private Command exit; private RecordEnumeration re; private int recordNO; Form frm; int index=0; […]