BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 04-17-2008, 10:33 AM   #1
conundrums
New Member
 
Join Date: Mar 2008
Model: 8120
PIN: N/A
Carrier: N/A
Posts: 3
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
CJLopez
Thumbs Must Hurt
 
Join Date: May 2008
Model: 8700
PIN: N/A
Carrier: Telcel
Posts: 69
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 Persistence « J2ME « Java

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



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


10 AWG Gauge PV Wire 1000/2000 Volt Pre-Cut 15-500 Ft Solar Installation BLACK picture

10 AWG Gauge PV Wire 1000/2000 Volt Pre-Cut 15-500 Ft Solar Installation BLACK

$37.00



Wago 221-615 Box Of 15 Lever Nuts - 5 Conductor  5x AWG 20 450v New In Box picture

Wago 221-615 Box Of 15 Lever Nuts - 5 Conductor 5x AWG 20 450v New In Box

$20.00



18 Gauge 6 Conductor Electrical Wire 25FT, UL 2464 18 AWG 6 Wire Cable Tinned Co picture

18 Gauge 6 Conductor Electrical Wire 25FT, UL 2464 18 AWG 6 Wire Cable Tinned Co

$34.80



Siemens HC230 8E/8A LWL Interface Module Schnittstellenmodul picture

Siemens HC230 8E/8A LWL Interface Module Schnittstellenmodul

$399.00



WindyNation 10/3 10 AWG 3 Conductor SOOW SO Cable Cord Wire 600V Portable Power picture

WindyNation 10/3 10 AWG 3 Conductor SOOW SO Cable Cord Wire 600V Portable Power

$212.13



Battery Cable 1/0 Gauge AWG Extreme Pure Copper Battery Power Wire Made in USA picture

Battery Cable 1/0 Gauge AWG Extreme Pure Copper Battery Power Wire Made in USA

$264.00







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