> Hi Brady,
> Thanks for your complete answer. I took some time to analyse it.
> I read some documents at developers.sun.com and realise that RMS has
> nothing to do with PDBs, since RMS uses its own file format.
> In fact, I could not open any other DB not created by a Java app.
> Another issue comes from the fact that I used to create PDBs in the
> desktop and move them to the device without conduits.
> Any way, your help allowed me to understand a little more the Java world
> Thanks!
>
> Oscar
>
>> Hi Oscar,
>>
>> I used Eclipse and Sun's Wireless Toolkit 2.1 to develop my apps.
>> Before
>> I
>> wrote any code, I spent a bit of time studying the API and looking at
>> examples on Sun's web site and IBM's web site.  My particular scenario
>> included a MIDP app, a Conduit app, an RDBMS, and a desktop Java (Swing)
>> app.  I didn't use the Simplicity for PalmOS because it didn't have the
>> utilities I needed for writing the Conduit app.  I'm sure it would work
>> very
>> well if your plan is to write wireless apps, however.
>>
>> What I didn't like about Simplicity for PalmOS is that it seemed to
>> create
>> one java class that did everything rather than allowing me to create
>> several
>> java classes to split up the app into logical components like UI, logic,
>> and
>> data.  But, I didn't evaluate it for very long so I'm not entirely sure
>> that
>> it's not capable of doing that.
>>
>> The real challenge that I ran across was with the Virtual Machine that
>> runs
>> on the Palm for the Java app.  Palm supports IBM's WME but I had much
>> better
>> luck with Sun's VM for Palm.  It allowed my Conduit app and my Palm app
>> to
>> "see" the same data.  I did not have any luck doing that with IBM's WME.
>> But if your objective is to simply backup your data on the desktop
>> rather
>> than sync with a desktop database, then I'm sure the WME would work
>> fine.
>>
>> As far as how the RMS works, consider a single DataStore (that's what
>> Java
>> calls them) to be like a single database table.  Records that are kept
>> in
>> that datastore are NOT written like a normal database table however.
>> Consider this datastore "table" to be two columns.  In the first column
>> is
>> a
>> unique ID assigned to the record by the VM (the primary key).  The
>> second
>> column contains the data that your app reads.  For example, let's assume
>> you
>> have 7 fields in your Palm app that you persist.  Each of the 7 fields
>> is
>> written in bytes and each field of data is separated from the others by
>> a
>> null character.  This will take some getting used to.  My suggestion is
>> search for RMS examples on Palm's, IBM's, and Sun's web sites.  I found
>> a
>> few examples that I could adopt.  If not, feel free to email me and I
>> can
>> provide some more assistance.
>>
>> Hope that helps!
>> Brady


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to