1 / 6

Keeping It in Sync

Keeping It in Sync. HotSync®-ing Palm® Programs, Java Style by Mike Kirschman. The Palm® Model. Do minor processing on the handheld. Minor data entry Data display (often only a subset of data) Small remote database queries (if capable) Etc. Do major processing on PC/Laptop

gerek
Download Presentation

Keeping It in Sync

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Keeping It in Sync HotSync®-ing Palm® Programs, Java Style by Mike Kirschman

  2. The Palm® Model • Do minor processing on the handheld. • Minor data entry • Data display (often only a subset of data) • Small remote database queries (if capable) • Etc. • Do major processing on PC/Laptop • Large data entry • Extended processing • Internet (though, some appearing on HH) • Larger database queries.

  3. The Conduit: Bridging the Gap • Once the processing is done on the HH or PC, the other needs to be updated of the data changes. The vehicle for these changes is the Conduit. • The coding options presented in the Palm OS® Conduit Development Kit (CDK): • C++ • Java • Com

  4. Java Conduits • Overall Design • Read HH data to PC (HotSync®) • Read PC copy of data into conduit (see diagram ) • Read PC data • Determine type of sync necessary: • HH  PC • HH  PC • HH  PC • Write data to HH or PC as necessary gnt.GNTConduit 1 Request DB Open palm.conduit.SyncManager (opens HH database) gnt.GNTOptions 2 Read this Record 3 ReadOptions gnt.GNTRecord 4 Read this File gnt.GNTConduit 5 Repeat for each file (known by options) (Left for a later time)

  5. Data Stream to Read Text Database, Record 0 File 1 Boolean editable Boolean compressed UInt16 recNum UInt16 numGraphics UInt16 category Char[65] name File N Boolean editable Boolean compressed UInt16 recNum UInt16 numGraphics UInt16 category Char[65] name Options UInt16 openFile UInt16 openGraphic UInt16 numRecs UInt32 optionsRecSize … Text Database, Record j Є {1..N} Char[] fileText

  6. More Information • Palm OS® Development:http://www.palmone.com/us/developers • Other Palm Resources:http://ardiri.com(look for Palm Development Kit, PilRC, & jCode) • Conduit Development:http://www.palmos.com/dev/tech/conduits • IDE-based development:http://www.metrowerks.com/MW/develop/Wireless/PalmOS/Professional/

More Related