Thread: RMS in J2ME
View Single Post
  (#2 (permalink)) Old
CJLopez Offline
Knows Where the Search Button Is
 
Posts: 28
Join Date: May 2008
Model: 8700
PIN: N/A
Carrier: Telcel
Default 05-08-2008, 03:09 PM

Of course it possible, you only need to use the method GetRecord

getRecord

public byte[] getRecord(int recordId)

Just let him now wich recordId you want to store, this one will return a array of bytes, just store this bytes on a variable and create a new String. Something like this

public String getRecordIformation(int recordID) throws RecordStoreNotOpenException,
InvalidRecordIDException,
RecordStoreException
{
return new String(recordStore.getRecord(recordID);
}

that way, you 'll what was stored in the record with the number recordID as a String, then you can store this on a buffer and once you get it all, you can store on your text file

'll leave here a couple of urls where you can get a better hold of this

MID Profile
Database Persistence*«*J2ME*«*Java

Last edited by CJLopez : 05-08-2008 at 03:11 PM.
   
Reply With Quote