BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 04-17-2008, 10:33 AM   #1 (permalink)
New Member
 
Join Date: Mar 2008
Model: 8120
PIN: N/A
Carrier: N/A
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default RMS in J2ME

Please Login to Remove!

Hello,
I am developing a simple blackberry application using J2ME.

My application does not rely on internet connection, so I decided to use a J2ME record management store.

Is this possible to convet the data of record management store into a normal text file or xml file?
The text file or xml file is going to be saved in a PC (using a desktop manager) and it will be later stored to database using other utility.

Any advice will be appreciated.
Thanks.
Offline  
Old 05-08-2008, 03:09 PM   #2 (permalink)
Thumbs Must Hurt
 
Join Date: May 2008
Model: 8700
PIN: N/A
Carrier: Telcel
Posts: 69
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

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 Persistencex«xJ2MEx«xJava

Last edited by CJLopez : 05-08-2008 at 03:11 PM.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

OATEY 11890 THERMO ROOF FLASH 3IN
$12.74
OATEY 11890 THERMO ROOF FLASH 3IN pictureEnfain 8GB USB 2.0 Flash Drive, 10 Pack - Blue
$41.15
Enfain 8GB USB 2.0 Flash Drive, 10 Pack - Blue picture(1PCS) SST39VF040-70-4C-NHE IC FLASH MPF 4MBIT 70NS 32PLCC 39VF040 SST39VF040
$2.96
(1PCS) SST39VF040-70-4C-NHE IC FLASH MPF 4MBIT 70NS 32PLCC 39VF040 SST39VF040 picture16GB USB Flash Drive Pen Drive Thumb Drive Memory Stick -10 Pack -Black
$50.45
16GB USB Flash Drive Pen Drive Thumb Drive Memory Stick -10 Pack -Black pictureSCT Class 10 UHS-1 128GB SD XC Flash Memory Card, S.F128.RT - Retail Packaging
$44.24
SCT Class 10 UHS-1 128GB SD XC Flash Memory Card, S.F128.RT - Retail Packaging picture






Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.