Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PDBs & the J2ME

 
Layton Welborn
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, I humbly apologize for reprinting what I'm sure is a FAQ somewhere, but I've searched about everywhere and decided that I'm still a little fuzzy on the topic so here it goes....
I have an app that pulls data down to a pc from a server in the form of a comma-delimted file. I believe that I need to write a conduit that will open this csv file and call dbCreateDB() to create the "PDB" on the handheld. I then want to open the "PDB" in a MIDlet on the handheld. I have seen & read about RMS, but it appears that I can only create a db (or "file") on the pda if I get my external data from a wireless connection not from a synchronization. Is this a true statement?
I need to be able to give my data from this external csv file that resides on the user's pc. What are my options?
Right now I only interested in this type of scenario for the Palm. I would like to stick with Java and not have to go to C unless I have to.
Again I do apologize for apparent repeat, but the other posts all say just use RMS, and that is the only option. I just need to know where to go from here to accomplish what I'm trying to do.
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not think MIDP can open arbitary
PDBs on the PDA.
One thing you can do is to simulate a TCP/IP
Palm network over serial cable and transfer
data through the serial network.
 
Eric Giguere
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MIDP's RMS does not provide direct access to native databases. Yes, RMS record stores are implemented using native databases, but the format is undocumented and can change at any point. If you really want to write a conduit, you can do it providing you understand that what you're doing is not officially supported.
The upcoming Personal Digital Assistant Profile (PDAP) will hopefully address these kinds of things. MIDP isn't really powerful enough for PDA-type devices, it's really meant for cellphones and other VERY constrained devices.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic